Description

The UsernameGen Generator generates user names by initially referencing a Domain's id Attributes and pre-appending the constant 'User' to the value of the id to guarantee uniqueness. For example: 

  • User1
  • User2
  • User3

You may change the prefix parameter value 'User' to another value or reference. You may also change the reference parameter to another reference or value. 


In This Article


Generator Parameters

The following parameters may be configured for the UsernameGen Generator. Items with an asterisk* are required. 

  • prefix* - Defines the value that is the prefix of the user name. The default is 'User.'
  • reference* -Defines an Attribute to reference that should return a unique value. The id Attribute will be selected as the default if it exists.
     


Example 1 - Generate Username with "User" Prefix Combined with Last Name

For this example, each user's last name will be added to a 'User' prefix to create a username. 



Sample Output


Example 2 - Generate Username from firstName and lastName Domain Attributes

For this example, the user's first and last name will be used to create a user name. The UsernameGen references the firstName Attribute for the prefix parameter and the lastName Attribute for the reference parameter.



Sample Output