Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/23/2024 09:01 AM
Hi Experts,
We have to pass the existing access with the new access . So we are calling the acess assigned in the 1st call . Please find the response is the below way :
"roles": [
{
"id": "66",
"name": "InfosysUser"
},{
"id": "76",
"name": "InfosysUser1"
}
]
And we have to pass these role ids from the 1st response as a body to the second call and the format of passing is below:
"roleIds": [
133,
170
]
Please let us know how we can do this.
Regards,
Neeharika
07/23/2024 11:36 AM
Hi @Neeharika008 ,
Let's say the your entitlementype is "Role", you can use the below sample code to iterate through roles list :
${List ids=new ArrayList();for (Map map : response.Role1.message.roles){ids.add(map.id)}
This way you can store the ids into a list to be used in the "roles" attributes afterwards.
07/23/2024 02:20 PM
Can you share draft json prepared so far