Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Username Generation Conflict Dealing With Multiple User Sources

Sivagami
Valued Contributor
Valued Contributor

We have 2 sources through with the users are created. One via Saviynt (Create User Form) and one via HR Source.

Username generation logic is used with Auto increment like below. (Basic Config)

Constant value USER + 1 character from firstname + 1 character from lastname + Auto increment from 10000

So usernames will look like below -> USERFL10000, USERFL10001, etc.,

Users created via register user go through approval before they are created. 

We had a scenario where let's say USERFL10000 was in approval state post create user form was submitted and in the meanwhile a user from HR source with same firstname and lastname initials came, the system issued USERFL10000 as username for the user imported from HR source. And when the user requested via create user form got approved, they were never created due to the user with same username - USERFL10000 existing in user table.

Appreciate your insights on how this issue can be resolved.

-Siva

9 REPLIES 9

rushikeshvartak
All-Star
All-Star

You need to check used username in request_access_attrs table.

Refer sample https://forums.saviynt.com/t5/identity-governance/username-generation-rule/m-p/11630


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak , We are using basic configuration with autoincrement for username generation and the dynamic attribute in create user form just maps to the user attribute username. When the user is pulled from HR source as well, the same username generation rule is hit and issues the username. How do we resolve issue in this case?

-Siva

Using advanced confiy


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

How can you access request_access_attrs in advanced config of username generation as it's not a dynamic attribute.

Username generation rule is used to commonly generate username between users created from this create user form and users imported from HR source.

Sivagami_0-1707760808121.png

-Siva

try writing inner select query


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Username generation rules support it?

I have not tried. But you can explore


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Sivagami
Valued Contributor
Valued Contributor

As per Solved: UserName Generation Rule - Saviynt Forums - 40822, Select statements doesn't work in username generation rule but works in system username generation rule.

Raise idea ticket 😂


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.