Hi Community,
Has anyone successfully revoked a role via Access Request API? If so, could you share the correct request body or any pointers?
I’m trying to revoke a requestable role using the SailPoint IdentityNow Access Request API (https://sailpoint.api.identitynow.com/v3/access-requests). According to the documentation, roles, access profiles, and entitlements can be requested for revocation.
I have successfully revoked access profiles and entitlements using the API, but when I try the same for roles, it fails. The role was originally assigned via an access request.
Here’s the request body I’m using:
{
"clientMetadata": {
"requestedAppId": "d8311f59063643edaf13fd92bb387efb",
"requestedAppName": "AD App - LitHold"
},
"requestType": "REVOKE_ACCESS",
"requestedFor": \[
"{{$.loop.loopInput.identity.id}}"
\],
"requestedItems": \[
{
"assignmentId": "30ba59ed162144cca49231a311d06cd0",
"clientMetadata": {
"requestedAppId": "d8311f59063643edaf13fd92bb387efb",
"requestedAppName": "AD App - LitHold"
},
"comment": "Revoking ENTITLEMENT for {{$.loop.loopInput.identity.name}} with multiple AD accounts",
"id": "aa01295cc1794c6e860b0fe515ac6f70",
"nativeIdentity": "{{$.loop.loopInput.nativeIdentity}}",
"type": "Role"
}
\]
And here’s the response I get:
“detailCode”: “400.1 Bad request content”,
“trackingId”: “468f8b28032c45d9ae72f9ac79ab5583”,
“messages”: [
{
"text": "The following access item(s) cannot be revoked from identity (\\"f40b9ac158274b6a9dad06a531a0f319\\"): e2e72619c74d443484411f125a6661 "text": "The following access item(s) cannot be revoked from identity (\\"f40b9ac158274b6a9dad06a531a0f319\\"): e2e72619c74d443484411f125a6661cd."
}
]
Also, does anyone know if roles assigned via an access request behave differently than roles assigned directly when it comes to revocation?
Thanks in advance!

