and more in a single search tool across platforms. Read the announcement here. |
09/20/2022 12:02 PM
We have created Rest API and user can request multiple roles through ARS request. Whenever API calling to target system it is sending multiple roles in the format "Role1,Role2".
But application expecting as "Role1|Role2" whenever user request multiple roles. Do there any one who have any solution for this.
09/20/2022 12:18 PM
${allEntitlementsValues.replaceAll('|',',')}
You can above syantax
09/20/2022 12:36 PM
Hi Rushikesh,
Thank you for quick response, I think there was some confusion hope so, We are executing Create Account JSON and roles are dynamic roles. When user request from ARS to multiples Saviynt is sending Request body as role_code:"role1,role2" but this is not expected it should be role1|role2. This is sample log
httpParams - [flag:add, employeeID:THxxx, employee_name_th:test , employee_name_eng:testm mobile_number:+91xxxx, language:en-US, email:xx.Test@devl.xxx.org, user_role_code:AR_INVOICE,AR_SETUP,AR_TREASURY,
09/20/2022 01:15 PM
You won't be able to send entitlement details in create account json
09/21/2022 01:09 AM
It is not entitlement it is dynamic roles that are pulled from target application and just we are making user to request roles from ARS. with multiple roles comma seperate is working for other application but for other we need to send with "|"
09/21/2022 02:27 AM
Role is application role / Entitlement?
Role needs to be dynamic attribute then you can fetch in create account json
09/21/2022 02:41 AM
We are able to get but the concern while sending request for create account json if it is sending multiple roles saviynt is sending in the format as Role1,Role but we need requirement to change the format to Role1|Role2
09/21/2022 08:20 AM
You can use string function replaceAll to change separator