and more in a single search tool across platforms. Read the announcement here. |
03/15/2024 07:33 AM
Hi everyone,
I wanted to know, how you handle Username generation. RIght now I have th eissue, that subsequent Requests use the same Username, as the "Auto Increment" Feature does not seem to respect In-Flight requests.
Any hints how to tackle this?
Cheers 🙂
Solved! Go to Solution.
03/15/2024 04:59 PM
Hello @Murmur,
1. Please refer to below links
https://forums.saviynt.com/t5/general-discussions/incremental-series-in-account-name-rule/m-p/2385
https://forums.saviynt.com/t5/identity-governance/creat-an-auto-increment-unique-username-generation...
https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-auto-increment-user-id-in-username-gener...
https://docs.saviyntcloud.com/bundle/EIC-Admin-v2021x/page/Content/Chapter06-EIC-Configurations/Conf...
2. Second approach is to use datasets.
03/15/2024 05:04 PM
select concat("SE",case when (length(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1)) = 1) then concat('00000', CONVERT(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1),CHAR)) when (length(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1)) = 2) then concat('0000', CONVERT(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1),CHAR)) when (length(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1)) = 3) then concat('000', CONVERT(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1),CHAR)) when (length(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1)) = 4) then concat('00', CONVERT(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1),CHAR)) when (length(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1)) = 5) then concat('0', CONVERT(greatest(max(substring(raa.attribute_value,3,length(raa.attribute_value)))+1 , MAX(substring(u.username, 3, length(u.username)))+1),CHAR)) END) AS ID from request_access_attrs raa,users u where raa.attribute_name = 'Username' and raa.attribute_value like 'SE0%' and u.username like 'SE0%' and length(u.username) = 8
03/17/2024 06:04 PM
How requests is raised via ARS / Import sheet
03/18/2024 12:17 AM
Hi @rushikeshvartak - The requests are raised via ARS
03/18/2024 02:10 AM
@Murmur try using the feature FN_EIC_SEQGEN which is theere in EIC.
You can use the same in your username generation rule.
More Details here : Database Functions (saviyntcloud.com)
03/18/2024 11:53 AM
Hi @Manu269
Thanks for the hint. UNfortunately I'm not able to get it resolved in the "Add Register User Rule".
I tried the following SQL Queries, with no success:
Any hin on how to use this properly here?
03/18/2024 08:14 PM
Create dynamic attribute and user user column = Username
03/18/2024 09:02 PM
Sample :
case when (users.employeetype ='Vendor') then FN_EIC_SEQGEN ('Vendor') when (users.employeetype ='External') then FN_EIC_SEQGEN('External') end
03/19/2024 09:03 AM
Thanks everyone,
I now used a mix of your suggestions (I believe).