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
ID: KB20200616-1
Overview
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 should use the Expression Builder for Generated value in Attribute Policy.
If 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 should configure the Expression Builder for each attribute separately.
Configuration example
User samAccountName should have six characters. Let the user name be Bernard St-Louis. So, his samAccountName should be BerStl. It is necessary to remove special character from the user surname at first and then take three characters.
- Open Cayosoft Administrator console
- Navigate to Home > 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 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 Generation value
- Click ... to open Expression Builder
- Add GivenName token
- Set Take first 3 letters
- Click Ok
- Add SurName token
- Set Take first 3 letters
- Open Advanced section
- In Exclude characters select Characters prohibited for SamAccountName/UserPrincipalName
- Check Exclude additional characters and add '-'
- Click OK
- Save changes
Comments
0 comments
Please sign in to leave a comment.