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

Unique Account Name Generation

aksharkay
New Contributor III
New Contributor III

Hi,

 

Can anyone please let me know if an account name rule can be written at the endpoint level to append an auto-increment integer to the account name if an account already exists with that name?

For ex: if there is no account with name johndoe@test.com in the endpoint, then the account should be created with the name johndoe@test.com itself. But if there is already an existing account with name johndoe@test.com, then the new account name generated should be johndoe1@test.com. If there are accounts all the way up to johndoe7@test.com, then the next account name should be johndoe8@test.com, and so on.

Any sort of help would be greatly appreciated!

Thanks & Regards,

Akshar

2 REPLIES 2

pmahalle
All-Star
All-Star

@aksharkay 

Yes it's possible using Auto Increment under Account Name rule present in endpoint.

pmahalle_0-1717578898580.png

 


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

PremMahadikar
All-Star
All-Star

Hi @aksharkay ,

Yes, it's possible as Paddy mentioned above. 

Looks like you are copying email to account name, if this true - we can't add a string (to add '@test.com') unless you are storing this separately in any CP of the user or we can't use replace in basic configuration.

In this case, you need to use advance config:

users.email#replace(users.email,'@','1@')#replace(users.email,'@','2@')#replace(users.email,'@','3@')#replace(users.email,'@','4@')#replace(users.email,'@','5@')#replace(users.email,'@','6@')#replace(users.email,'@','7@')#replace(users.email,'@','8@')#replace(users.email,'@','9@')#replace(users.email,'@','10@')

Note:

  1. Add special character '@'
  2. Use 'All' in check unique account
  3. Increase the iterations based on your use case

if this helps, please consider selecting Accept As Solution and hit kudos