- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
You will notice the User Name for the selected web application is different than the user’s Idira username.
This method can also be used to enter a predefined password unique to the end user, for non-SAML applications that uses a password for authentication.
Custom attributes can be created in Idira Identity by going to Settings > Customization > Additional Attributes and click Add.
The name must contain an underscore. Select Text for Type. Optionally select User Editable. User Editable enables the user to populate or edit this value through the User Portal > Account > Personal Profile > Additional Attributes. Click Add.
For example, if the Additional Attribute field name is “Alt_username” then enter: LoginUser.Username = LoginUser.Get("Alt_username");
There are 2 advantages for using Additional Attributes instead of user’s Application Settings.
1. Additional Attributes are included in the Bulk import csv and
2. Additional Attributes can optionally be editable by the end user.
The Account Mapping Script field can also be used to username modifications for different use cases. Below are some common examples.
/* ==== Example #1: Append a different login domain to shortname. ====
In this example, the user's AD and email domain is different than the domain used in the username.
LoginUser.Username = LoginUser.Shortname +"@differentdomain.com"
==== Example #2: Prepend the domain name to the username =====
In this example, the desired username format is domain-name\username. (For example: CYBR\john)
LoginUser.Username = "domain\\" + LoginUser.Shortname;
==== Example #3: Shortname vs samaccountname =====
If you selected Directory Service Field and entered samaccountname into the field, it would work for AD users but not for Idira Directory users. The following script for Shortname will work for both AD and Idira Directory users. This script is probably the most commonly used.
LoginUser.Username = LoginUser.Shortname;