and more in a single search tool across platforms. Read the announcement here. |
04/12/2022 01:20 PM
I have to integrate a REST API that doesn't have calls for adding/removing a single entitlement. I always have to update the account with the full list of current entitlements.
Example 1:
User has entitlements A and B. Additionally he should receive C. I have to send user update with:
{"roles": [{"name": "A"}, {"name": "B"}, {"name": "C"}]}
Example 2:
User has entitlements A, B and C. B should be removed. I have to send user update with:
{"roles": [{"name": "A"}, {"name": "C"}]}
Is this possible to do in the AddAccessJSON?
Solved! Go to Solution.
04/12/2022 03:01 PM
Hi Andre,
Thank you for posting your question,
We have couple of questions to understand your ask,
1. Is the entitlement an hierarchy one?
2. What is the application your trying to connect to?
Thanks.
Belwyn.
04/12/2022 03:01 PM
Hi Belwyn,
Thanks for the reply. I found an example I overlooked before in the REST Connector Guide in the meantime and got it to work. Target system was Coupa and the example was actually even for Coupa. Maybe it should be moved to the Coupa Connector Guide where it is missing.
Thanks
André
04/12/2022 03:01 PM
For the benefit of the folks in the community, here's the link to the documentation which has this information.
https://saviynt.freshdesk.com/a/solutions/articles/43000521736
Regards,
Avinash Chhetri
04/12/2022 03:01 PM
Hello André,
Can you please share your remove access json please as the same requirement i have for NetSuite. but there is no documentations in fd for the same.
Regards
Nitin
04/12/2022 03:01 PM
Hi Nitin,
it was solved with multiple calls, so first getting current entitlements from target system and then accessing this list while setting the new ones. You can find it here
https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide#RESTConnec...
in example 3.
04/12/2022 03:01 PM
Hello Andre,
Thanks for your response. below is the json from the postman body wherein we need to pass all the existing entitlements assigned to the user except the one which needs to be removed as the replace method available in api accept the entitlements in below format only.
can you please suggest how can we handle this. if possible can you please share your remove access json removing authentication details.
https://DomainName.suitetalk.api.netsuite.com/services/rest/record/v1/employee/54929?replace=roles
{
"roles": {
"items": [
{
"selectedRole": {
"id": "4"
}
},
{
"selectedRole": {
"id": "1"
}
}
]
}
}