# Workflows: Action "Manage Access"

**URL:** <https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [April 20, 2023, 3:50pm UTC](https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479 "2023-04-20T15:50:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiuseppeDe](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@GiuseppeDe](https://developer.sailpoint.com/discuss/u/GiuseppeDe)\
**Post date:** [April 20, 2023, 3:50pm UTC](https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479/1 "2023-04-20T15:50:27Z")

</div>

Hi all,

In a workflow I’m using the action “Manage access” to remove access profiles.  
The removing fails with the follwowing error:

```auto
request failed: 400 - 400 Bad Request: The following access item(s) 
cannot be revoked from identity ("12a2f4149a1d46cba0f91b1baa7ea028"): 2c9180857f9092b8017f97c2cdb20f92. 
(type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request

```

It happens that 2c9180857f9092b8017f97c2cdb20f92 is the id of an access profile belonging to a role.  
I think this is a misbehaviour because in “Manage Access” are present two check boxes one for the roles and one the access profiles.  
If I check only the access profile for removing should be removed only the access profiles not belonging to roles

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [May 2, 2023, 1:57pm UTC](https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479/2 "2023-05-02T13:57:30Z")

</div>

If the access profile is a part of a role, and the identity in question has that role assigned to them, then it makes sense that you can’t revoke the access profile. That would defeat the purpose of the role.

---

<div class="post-metadata">

**Author:** ![GiuseppeDe](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@GiuseppeDe](https://developer.sailpoint.com/discuss/u/GiuseppeDe)\
**Post date:** [May 2, 2023, 2:39pm UTC](https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479/3 "2023-05-02T14:39:43Z")

</div>

Hello Colin,

You’re right, the first thing to do is removing the roles and then, after a while, removing the aps.  
Just a question: the maximum number of roles or aps from the action “manage access” is 50 or 250?

Regards,  
Giuseppe

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/workflows-action-manage-access/10479/4 "2023-07-19T14:24:51Z")

</div>

Closed on July 19, 2023, 2:24pm UTC


