How to exclude characters from generation values in Attribute Polices
Summary: This article contains step-by-step instructions on how to exclude characters from generation values in Attribute Polices.
Applies to: Cayosoft Administrator 7.2.0 or later.
When user accounts are getting created and have special characters in them (apostrophe, dash), these characters usually need to be excluded from generated values of an object attributes To do this, you need to use the Expression Builder for Generated value in Attribute Policy.
If the Generated value consists of several object attributes you may need to exclude special characters from each of them or only from some of them. So, you need to configure the Expression Builder for each attribute separately.
In the Cayosoft Administrator console, navigate to Configuration > Web Portal > Attribute Policies.
Click Add Attribute Policy.
Enter a name for the New policy.
Expand the Policy Details of the new policy.
Click Add scope at the bottom right of the Policy Scope section.
In the Specify Policy Scope dialog, do the following:
Select the Active Directory Admin Unit in the All Admin Units;
Select the AD Users Web Query in the All Web Queries;
Select New User in the All Actions;
Click Ok.
Click the newly created scope to select it.
In the Attribute policy settings section, select the User logon name attribute.
Click Edit Policy.
Check the Generation value.
Click ... to open Expression Builder.
Add the GivenName token.
Set Take first 3 letters.
Click Ok.
Add the SurName token.
Set Take first 3 letters.
Open the Advanced section.
In the Exclude characters, select Characters prohibited for SamAccountName/UserPrincipalName.
Check Exclude additional characters and add '-'.
Click OK
Save changes.
NOTE: Excluded characters must be specified without delimiters. Uppercase and lowercase letters are treated as distinct (case-sensitive).
Comments
0 comments
Please sign in to leave a comment.