Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:58 PM
Is it possible to import entitlements which are present in the JSON payload as Array List?
Below is my use-case, I want to import list of permissions via /roles (as the API doesn't provide a separate resource to import permissions):
JSON Response Payload:
{ "total": 2, "offset": 0, "limit": 1000, "results": [ { "id": "1", "resourceType": "Role", "name": "Assignee", "permissions": [ "ASSET_ATTRIBUTE_CHANGE", "ASSET_CHANGE", "ASSET_ATTRIBUTE_ADD", "ASSET_ATTRIBUTE_REMOVE" ] }, { "id": "2", "resourceType": "Role", "name": "Admin", "permissions": [ "USER_ADMIN", "ASSET_DELETE" ] } ] }
ImportAccountEntJSON (For Permissions import - Please correct it if below config is wrong):
"Permission": { "entTypeOrder": 2, "call": { "call1": { "callOrder": 0, "stageNumber": 3, "http": { "url": "https://XXXXXXXXXX/rest/roles", "httpContentType": "application/json", "httpHeaders": { "Authorization": "${access_token}" }, "httpMethod": "GET" }, "listField": "results", "keyField": "entitlementID", "colsToPropsMap": { "entitlementID": "permissions~#~char", "entitlement_value": "permissions~#~char" } } } }
Solved! Go to Solution.
04/12/2022 02:03 PM
Hi Ramanpreet Bhatia,
The REST connector cannot handle the above response since it is not in the right format and does not contain a key value pair to import Entitlements.
Thank you
Vedanth B.K
04/12/2022 02:03 PM
Thanks Vedanth,
Regarding 'does not contain a key value pair to import Entitlements'
If we set the entitlement ID same as the entitlement value?