# Disable or enable Identity VIA API(Identity IQ 8.4)

**URL:** <https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709>\
**Category:** IIQ Discussion and Questions\
**Tags:** apis, identityiq\
**Created:** [August 4, 2025, 10:10am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709 "2025-08-04T10:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiru\_1307](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@Chiru\_1307](https://developer.sailpoint.com/discuss/u/Chiru_1307)\
**Post date:** [August 4, 2025, 10:10am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/1 "2025-08-04T10:10:50Z")

</div>

Hello, is there a way to disable or enable a user the api.

---

<div class="post-metadata">

**Author:** ![uditsahntl01](https://avatars.discourse-cdn.com/v4/letter/u/c67d28/32.png) [@uditsahntl01](https://developer.sailpoint.com/discuss/u/uditsahntl01)\
**Post date:** [August 4, 2025, 10:45am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/2 "2025-08-04T10:45:08Z")

</div>

Hi  
Please try updating the `identity` object and modifying its `inactive` status  
You need to set “inactive” to true or false

---

<div class="post-metadata">

**Author:** ![asharma65](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/asharma65/32/28358_2.png) [@asharma65](https://developer.sailpoint.com/discuss/u/asharma65)\
**Post date:** [August 4, 2025, 11:05am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/3 "2025-08-04T11:05:21Z")

</div>

> [@Chiru\_1307](#):
>
> Hello, is there a way to disable or enable a user the api.

Hello @Chiru_1307

Yes Sailpoint Identity Rest API has that option. Try below code:-

URL:- `/identityiq/rest/identities/{identityId}`

PATCH

Request Body:-

```auto
{
  "attributes": {
    "enabled": false
  }
}

```

Pass `"enabled": true` to enable identity and `"enabled": false` to disable identity

---

<div class="post-metadata">

**Author:** ![Harikrishna\_06](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Harikrishna\_06](https://developer.sailpoint.com/discuss/u/Harikrishna_06)\
**Post date:** [August 4, 2025, 12:40pm UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/4 "2025-08-04T12:40:32Z")

</div>

This is the Attribute need to modify → **active** where we can set it to true or false to enable or disable the identity, so API is **[http://localhost:8080/identityiq/scim/v2/Users/userId](http://localhost:8080/identityiq/scim/v2/Users/userId)**  
Method Name: PUT  
Json Body: {  
“userName”: “Name of the User”,  
“active” : true // To enable the Identity  
}

---

<div class="post-metadata">

**Author:** ![vinod\_218](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vinod\_218](https://developer.sailpoint.com/discuss/u/vinod_218)\
**Post date:** [August 5, 2025, 5:42am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/5 "2025-08-05T05:42:13Z")

</div>

To enable or disable an identity in SailPoint IdentityIQ 8.4 using the SCIM API, you need to update the **active** attribute of the user. This change directly affects the IdentityIQ internal attribute named **inactive**.

## API Details:

- **Endpoint** :  
PUT [http://localhost:8080/identityiq/scim/v2/Users/{userId}](http://localhost:8080/identityiq/scim/v2/Users/%7BuserId%7D)

- **Method** : PUT

- **Request Body (JSON)**:  
{  
“userName”: “Name of the User”,  
“active”: true // Set to false to disable the identity  
}

## Attribute Mapping:

- Setting “active”: true in the API will:
  1. **Enable** the identity
  2. Automatically set the **inactive** attribute to **false** in IdentityIQ

- Setting “active”: false in the API will:
  1. **Disable** the identity
  2. Automatically set the **inactive** attribute to **true** in IdentityIQ

---

<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 4, 2025, 5:42am UTC](https://developer.sailpoint.com/discuss/t/disable-or-enable-identity-via-api-identity-iq-8-4/163709/6 "2025-10-04T05:42:25Z")

</div>

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