Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Need to provision entitlements with backslash in it using REST connection

KirtiGupta
New Contributor
New Contributor

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

3 REPLIES 3

sundas7
Regular Contributor II
Regular Contributor II

Hi Kirti

Which target are you using? I suppose  \ should still be escaped with another \.  Are you getting any specific error

 

rushikeshvartak
All-Star
All-Star

.replaceAll \\ with \\\\\\\\


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

KirtiGupta
New Contributor
New Contributor

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"}}