# Remove Roles without Application

**URL:** <https://developer.sailpoint.com/discuss/t/remove-roles-without-application/165425>\
**Category:** IIQ Discussion and Questions\
**Tags:** entitlements, identityiq, provisioning\
**Created:** [August 7, 2025, 8:34pm UTC](https://developer.sailpoint.com/discuss/t/remove-roles-without-application/165425 "2025-08-07T20:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJGibson76](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@AJGibson76](https://developer.sailpoint.com/discuss/u/AJGibson76)\
**Post date:** [August 7, 2025, 8:34pm UTC](https://developer.sailpoint.com/discuss/t/remove-roles-without-application/165425/1 "2025-08-07T20:34:07Z")

</div>

## Which IIQ version are you inquiring about?

_8.3_

How do I remove roles that have no application through BeanShell? AccountRequest seems like the wrong approach, given there is no account (or is it “IIQ”)?

---

<div class="post-metadata">

**Author:** ![ryan\_toornburg](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ryan_toornburg/32/21550_2.png) [@ryan\_toornburg](https://developer.sailpoint.com/discuss/u/ryan_toornburg)\
**Post date:** [August 7, 2025, 10:18pm UTC](https://developer.sailpoint.com/discuss/t/remove-roles-without-application/165425/2 "2025-08-07T22:18:14Z")

</div>

Hi @AJGibson76 - yes it is “IIQ”

Example:``  
`AccountRequest acctReq = new AccountRequest();`  
`acctReq.setApplication("IIQ");`  
`acctReq.setNativeIdentity(id.getName());`  
`acctReq.setOperation(AccountRequest.Operation.Modify);`

`// Add the attribute requests to remove each of the Roles we need to remove.`  
`for (String roleName : addBundleNames) {`  
` AttributeRequest attrReq = new AttributeRequest("assignedRoles",`  
` ProvisioningPlan.Operation.Remove, roleName);`  
` acctReq.add(attrReq); `  
`}`

`plan.add(acctReq);```

---

<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:** [October 6, 2025, 10:19pm UTC](https://developer.sailpoint.com/discuss/t/remove-roles-without-application/165425/3 "2025-10-06T22:19:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
