and more in a single search tool across platforms. Read the announcement here. |
03/18/2024 09:02 AM
Hello,
We are doing AD provisioning, under connection create JSON, we tried below condition for samAccountName :
Both are not working and giving invalid argument issue.
Can anybody help here?
Regards,
Rahul
03/18/2024 09:45 AM
Hi @rahul_p, can you give it a shot by using "size()" once
03/19/2024 01:40 AM
Hello @NM ,
Thank you for the response, tried the size() but its not working. Same Substring issue is coming.
Regards,
Rahul
03/18/2024 10:13 AM
try below:
"sAMAccountName": "${if(task.accountName.length()<20) {task.accountName} else {task.accountName.substring(task.accountName,-2,2)}}"
03/19/2024 01:40 AM
03/18/2024 08:24 PM
"sAMAccountName": "${if(task.accountName.length() < 20) { task.accountName } else { task.accountName.substring(0, 20) }}"
03/19/2024 01:42 AM
Hello @rushikeshvartak ,
Thank you for the response.
This what currently configured and with this we are facing duplicate samAccountName issue, so we want to take first 18 chars and concat with last 2 chars to make it unique.
Thanks!
03/19/2024 02:53 AM
Hi @rahul_p
Can you try below?
"sAMAccountName": "${if(task.accountName.length()<20) {task.accountName} else {task.accountName[0..(task.accountName.length()-2)]}}"
03/19/2024 03:04 AM
03/19/2024 03:05 AM
Can you please share log snippet?
03/19/2024 03:10 AM - edited 03/19/2024 03:11 AM
Hello @naveenss ,
Checking DN for CN=SVC_todayisfirsttstaccount_techniallastnameuser,OU=<folder>,OU=<subDomain>,DC=<domain>,DC=com.Not FOund DN for CN=SVC_todayisfirsttstaccount_techniallastnameuser,OU=<folder>,OU=<subDomain>,DC=<domain>,DC=com. Error while creating account in AD - [LDAP: error code 80 - 00000523: SysErr: DSID-031A1242, problem 22 (Invalid argument), data 0 ]
Thanks,
Rahul