Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/29/2024 07:45 AM
When trying to updateAccount with account ID containing comma and a space getting error Unrecognized character escape ',' in logs.
UpdateAccountJSon
{
"objects": [
{
"objectClasses": [
"user"
],
"distinguishedName":"${account.accountID?.replace('\\', '\\\\')?.replace('/','\\/')}",
"moveObjectToOU": "${user.customproperty21}",
"attributes": {
"middleName": "${user.middlename}"
}
}
]
}
Sample accountID : CN=Test1nonstarter\, NSSav1,OU=Users,DC=saviynt,DC=com
07/29/2024 07:49 AM
{
"objects": [
{
"objectClasses": [
"user"
],
"distinguishedName": "${account.accountID?.replace('\\', '\\\\')?.replace('/', '\\/')?.replace(',', '\\,')}",
"moveObjectToOU": "${user.customproperty21}",
"attributes": {
"middleName": "${user.middlename}"
}
}
]
}
07/29/2024 08:48 AM
Still did not worked and throwing same exception.
Exception in inizializeProvisioningConnectioncom.fasterxml.jackson.core.JsonParseException: Unrecognized character escape ',' (code 44)
It replaced all the comma with \, in whole of the OU like "distinguishedName": "CN=Test1nonstarter\\\, NSSav1\,OU=Users\,DC=saviynt\,DC=com"
07/29/2024 11:39 AM
{ "objects": [ { "objectClasses": [ "user" ], "distinguishedName": "${account.accountID?.replace('CN=', 'CN=' + (account.accountID?.substring(account.accountID?.indexOf('CN=') + 3)?.replace(',', '\\,')))}", "moveObjectToOU": "${user.customproperty21}", "attributes": { "middleName": "${user.middlename}" } } ] }
07/29/2024 10:16 AM - edited 07/29/2024 10:16 AM
Hi @Kriti , is it even possible to update DN value in AD.. as far as I am aware no as it a RDN