Attribute validation rules
Validate existing values before enforcing length, format, and uniqueness rules.
Attribute validation rules
Use Settings → Attribute Validation Rules to constrain customer data. Rules can check length, format, and uniqueness of built-in profile fields and supported custom attributes. They validate data; a rule does not create the field or make a profile question required.
This is a global settings resource. With RBAC enabled, you need the relevant global read, write, or delete permission. Review the impact across brands before changing a shared rule. For the field editor, see Custom attributes.
Create a user rule
- Open the list, search by rule name to avoid creating a duplicate, and choose Add Attribute validation rule.
- Enter an internal Name. Customers see validation feedback, not this administrative name.
- Set Target model to User, then choose User attribute or Custom attribute and the existing field.
- Set the applicable constraints below and save. A new rule is inactive.
| Field | Meaning |
|---|---|
| Min length / Max length | Minimum and maximum character length for supported text values. Native date-of-birth fields do not support text-length or regex rules. |
| Regex | A regular expression the value must satisfy. Test allowed and disallowed input before enforcing it. |
| Regex message | Customer-facing feedback for a failed pattern check. Translate it for the offered languages; the displayed message can include the field label. |
| Unique | Prevent the same nonblank user-attribute value being used on another user. This is useful for membership identifiers used in internal matching. |
| Enforcement mode | Strict checks applicable existing values on updates. New or changed permits unchanged historical values while enforcing new records and changed values. |
For example, a membership-number rule can combine Max length: 10, regex ^[0-9]+$, and the message “Only numbers are allowed.” Turn on Unique if the membership number must identify one user. Keep membership numbers as text when leading zeros are meaningful. A format rule does not prove that a membership belongs to the person entering it; use additional proof in Internal matching.
Number and date fields can also expose comparison controls, including numeric limits, absolute dates, or age comparisons in days, months, or years. Choose only controls applicable to the selected field. The screen also supports Ticket, Subscription, and Transaction targets with their own category, value-path, and uniqueness scope; those are separate from a User rule's account-wide uniqueness.
Validate existing data and activate
- Open the inactive rule and choose Validate. Wait for its report to finish; a queued or running report is not a successful result.
- Open Reports. Inspect State, Outcome, and Message for each check. Download the CSV when a report file is available to find failing records, values, and reasons.
- Correct the affected data or revise the rule, then validate again. A missing download alone does not establish success: check the completed report's outcome.
- Choose Activate. Activation runs validation again. A strict rule is activated only after that check passes.
- Test a valid and invalid profile update and the relevant registration/import path. Confirm the customer message and translations.
New or changed mode can activate after a completed validation even when historical violations are reported. It is an explicit migration choice, not evidence that the old data meets the rule. Keep a cleanup plan for those records.
Blank-value handling and required fields are separate. Do not use Min length or Unique as a replacement for a required registration field. Configure required questions in Registration Config.
Edit, deactivate, or delete
Find the rule by name, confirm its target, and choose Edit. Save the revised constraints and inspect the resulting active state; rerun validation before relying on the change. Check any matching configuration that depends on a unique rule before weakening or removing it.
Use Deactivate to stop enforcement while retaining the definition and reports. To remove a rule, choose Delete from its row or detail actions and confirm. Deleting a rule removes that validation, not the underlying customer field or its stored values.