Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

User requesting multiple roles from ARS want to seperated by "|" instead of Comma (,)

srinath
Regular Contributor
Regular Contributor

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.

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

${allEntitlementsValues.replaceAll('|',',')}

You can above syantax


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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,

You won't be able to send entitlement details in create account json


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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

Role is application role / Entitlement? 

Role needs to be dynamic attribute then you can fetch in create account json


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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

You can use string function replaceAll to change separator 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.