Hil Alicia
Thanks for your answer.
I have built a workflow to remove these entitlements through an Action-HTTP Request to the API https://mydomain.api.identitynow.com/v3/access-requests placing this entry as a request in a Operator-Loop:
{“requestType”:“REVOKE_ACCESS”,“requestedFor”:[“{{$.loop.context.id}}”],“requestedItems”:[{“comment”:“Remove Roles in Oracle ERP Cloud due to user termination “,“id”:”{{$.loop.loopInput.id}}”,“name”:“{{$.loop.loopInput.name}}”,“type”:“{{$.loop.loopInput .type}}”}]}
but it returns a 400 code with this detail:
“child workflow execution error (type: sp-child-workflow, workflowID: c11d1ae7-0fb6-49b3-8d6a-6e18cf035b97-1, runID: 0b70e8b6-4626-4653-b6a7-ce117ed2c9e7, initiatedEventID: 29, startedEventID: 30): task failed: activity error (type: sp:external:http:v2, scheduledEventID: 11, startedEventID: 12, identity: d86127ff-1e99-44fc-8275-b50d57aefd4a): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request - {"detailCode":"400.1.3 Illegal value","trackingId":"a9faac3ed096425286231f17ac7bf323","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"Value of \"item.type\" is empty or contains invalid data."},{"locale":"und","localeOrigin":"REQUEST","text":"Value of \"item.type\" is empty or contains invalid data."}],"causes":} (type: withStack, retryable: true): task failed: activity error (type: sp:external:http:v2, scheduledEventID: 11, startedEventID: 12, identity: d86127ff-1e99-44fc-8275-b50d57aefd4a): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request - {"detailCode":"400.1.3 Illegal value","trackingId":"a9faac3ed096425286231f17ac7bf323","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"Value of \"item.type\" is empty or contains invalid data."},{"locale":"und","localeOrigin":"REQUEST","text":"Value of \"item.type\" is empty or contains invalid data."}],"causes":} (type: HTTPError, retryable: true)”
I have tried in postman to send the same request and it sends me the same code 400 although here it specifies the following message:
“Some items are not revocable due to role assignment”
Some of the entitlements to be removed, not all, are contained in roles. According to the message that the postman returns to me, is it not possible to remove them if they are contained in roles?
So, if we generate a beforProvisioning rule it would be better and this would not happen or does it also have this limitation?
Greetings