and more in a single search tool across platforms. Read the announcement here. |
10/23/2023 03:42 AM
Hi All,
We have a requirement to create AD Groups through Saviynt. Once the request is submitted in Saviynt a group has to create in target (AD) which is working fine but while creating group it has to create with a unique GID value and it has to generate a new unique value for every AD Group creation happens from Saviynt.
Below is random group and the place where GID number has to populate in AD.
Connector Type: AD
Is there a way where we have to increment a number in createUpdateMappings ?
We tried using a random number which is working but we have a doubt that it might generate same number again. So, we are going with any other options where we can print a unique number.
"gidNumber": "${(int)(java.lang.Math.random()*(10000-1000+1)+100)}"
Thanks,
Shyam
Solved! Go to Solution.
10/23/2023 06:10 AM
@ShyamSrisailam , your approach is correct here. Further see if UUID.randomUUID().toString() helps to reuse the redundancy.
10/23/2023 06:50 AM
Hi @nimitdave ,
do you want me to use the mentioned condition in createUpdateMappings in below format?
"gidNumber": "${UUID.randomUUID().toString()}"
10/25/2023 03:47 AM
Hi @nimitdave
I have tried with the below syntax but didn't work. Please let us know if this is the way I need to use this condition in createUpdateMapping OR let me know if there is any other syntax.
"gidNumber": "${UUID.randomUUID().toString()}"
10/31/2023 06:45 AM
Since we don't have any option to auto increment. We have used rolekey and a random number to send a unique value in GID attribute when the group is created. and it is working fine.
"gidNumber": "${role.id}${(int)(java.lang.Math.random()*(10000-1000+1)+100)}",
Why to use both rolekey and random number?
Role key is generating only 2 digits so we have appended with a random No so that at least it will push 4 - 5 digits of number in GID atrribute.