and more in a single search tool across platforms. Read the announcement here. |
04/19/2023 06:20 AM
Hi ,
we have created generate system username through rule in random numeric as shown below.
we have created a user manually. however, the username has only 6 digits as the name.
is there a limitation for the number of random numeric characters for generating user name.
Regards,
Abdul Gaffar
04/19/2023 12:03 PM
Hi
I don't see anything in the documentation
System Username Generation Rule | Use this setting to define a rule for generating system usernames. The system username is used by several applications, such as Active Directory, to uniquely identify users. To create a new rule for registering users, click Add Rule. The System Username Rules page displays the following options:
Basic Config: This is the default view to define a rule.To create a rule, perform the following steps:
Examples of rules:
If multiple rules are defined, they are separated by #, which is stored in the database to signify the start of the next rule. Advanced Config: Select this option to define a rule via an SQL query. SQL case when (users.employeetype = 'Contractor')THEN concat ('C-', users.username) ELSE users.username END
Note System username can also be generated with a combination of a custom string and username. You can also append random numbers to it, which is controlled by the sav.generatesystemuseraftersave setting in the externalConfig.properties file. When this setting is set to True, it generates a random number with the specified custom string. If the random numbers are not added, verify that this setting is present in the externalConfig.properties file and set to True. The following is a sample SQL query to generate a systemusername with an autoincrement number after checking if MiddleName exists: SQL concat(users.firstname , substring('.',1,1) , users.lastname) ### CASE WHEN (users.middlename is NOT NULL) THEN concat(users.firstname , substring('.',1,1) , substring(users.middlename,1,1) , substring('.',1,1) , users.lastname) END ### concat(users.firstname , substring('.',1,1) , users.lastname , substring('1',1,1))### concat(users.firstname , substring('.',1,1) , users.lastname , substring('2',1,1))### concat(users.firstname , substring('.',1,1) , users.lastname , substring('3',1,1) After creating the System Username rule, you can use the Edit Rule button to modify an existing rule. To remove a rule, click Delete. |
04/21/2023 06:41 AM
Thanks Devang. Defining was not an issue. However it doesnt seem to take more than 6 chars for username. Hence wondering if there was a limitation for username not to exceed 6 chars
04/21/2023 07:25 AM
As per my understanding there is no limitation that username cannot exceed more than 6 chars.
Thanks