Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/15/2022 12:51 AM
Hi Team,
We need to provision entitlement at target using REST API having backslash value in CP.
CP value : Delivery Manager\Delivery Specialist
tried using Delivery Manager\\Delivery Specialist Delivery Manager\\\\\\\\Delivery Specialist but got no result
06/15/2022 10:25 AM
Hi Kirti
Which target are you using? I suppose \ should still be escaped with another \. Are you getting any specific error
06/16/2022 05:17 AM
.replaceAll \\ with \\\\\\\\
06/17/2022 09:39 AM
Hi Rushikesh,
I tried using "FieldLevelSecurity\":\"${entitlementValue.customproperty3.replaceAll('\\','\\\\\\\\'}\"
But it gives error as "Role":{"message":"Unrecognized character escape ''' (code 39)\n at [Source: {\"UserID\":\"AD\\\\\\\\${user.username}\",\"AccessMode\":\"${entitlementValue.customproperty1}\",\"BusinessRole\":\"${entitlementValue.customproperty2}\",\"FieldLevelSecurity\":\"${entitlementValue.customproperty3.replaceAll('\\','\\\\\\\\'}\",\"LicenseType\":\"${entitlementValue.customproperty4}\",\"SecurityRoles\":\"${entitlementValue.customproperty5}\",\"VoiceSignatureAccess\":\"${entitlementValue.customproperty6}\",\"WebSalesAccess\":\"${entitlementValue.customproperty7}\"}; line: 1, column: 211]","status":"Failed"}}