Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:55 PM
Solved! Go to Solution.
04/12/2022 01:52 PM
Hello Pallavi,
Could you please provide the logic what you want to build for accountname rule ? We can manage it multiple ways. Looking for sample accountnames and logic it derives.
04/12/2022 01:52 PM
Got to know that we can add multiple rules separated by # so if name generated using rule 1 already exists then rule2 will be evaluated however how do I add the auto-increment logic in advanced config.
Consider simple account name generation rule: A + 6 chars of last name + 1 char of first name if its already exists then using Rule 2 -> A + 5 chars of last name + add number 01 and if its still duplicate the auto-increment.
So basically how do we add auto-increment logic in advanced config.
Thanks for the response.
04/12/2022 01:52 PM
Any sample to use ###INCREMENTINDEX###
concat(users.firstname,users.lastname)#concat('A',substring(users.lastname,1,6),substring(users.firstname,1,1))###INCREMENTINDEX###
I added it but when name generated using rule 2 is duplicate then next account name is generated as '1'.
Thanks,
Pallavi
04/12/2022 01:52 PM
When we configure the same rule using basic config with auto increment option at that time following condition is added for auto increment : substring('~1',1,1). But it does not seem to be working when configured it along with rules in advanced config,
Thanks,
Pallavi
04/12/2022 01:52 PM
Pallavi,
We understand the CustomString variable is not exposed in accountName rule, however the same is there in global configuration ARS when we form System User Name.
Still your unique accountname rule can be handled multiple ways :
Option1 :
Add your custom string in available customproperty in users object and access that object in accountnamerule and put your logic accordingly.
e.g. say custom string stored in Customproperty30
Then
Rule1 : Customproperty30 + 6 chars of last name + 1 char of the first name
Rule : Customproperty30 + 5 chars of last name + autoincrement function
Note : Auto increment fucntion append '1' not '01'
Option 2:
Leverage # in DB :
Sample (Write your own logic)
#substring(concat(users.lastname , substring(users.firstname,1,1)),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'01'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'02'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'03'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'04'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'05'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'06'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'07'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'08'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'09'),1,32)
# substring(concat(users.lastname , substring(users.firstname,1,1),'10'),1,32)
04/12/2022 01:52 PM
Hi,
It looks like # seperated rules does not work when used for system user name generation in advanced config. Is it true or am I missing anything?
concat('X',substring(users.lastname,1,6),substring(users.firstname,1,1))#concat('X',substring(users.lastname,1,6),'1')
Thanks,
Pallavi
04/12/2022 01:53 PM
global configuration ARS when we form System User Name - Basic config does not provide way to add condition to generate the usernames based on some rules for set of users identified by user attribute values. Hence exploring advanced config but there # separated rules seems to be not working which worked for endpoint - accountname generation rules.
04/12/2022 01:53 PM
HI Pallavi,
If you need to have cpmplex rule for system username, we would suggest to use inline processor.
Thanks
Ajay
04/12/2022 01:53 PM
Hello Ajay,
Do you mean to use import preprocessor?
Thanks,
Pallavi
04/12/2022 01:53 PM
Yes, Plaalvi, I mean to use import pre-processor.
04/12/2022 01:53 PM
ok, thank you for response. I will evaluate it.