Hello, is there a way to disable or enable a user the api.
Hi
Please try updating the identity object and modifying its inactive status
You need to set “inactive” to true or false
Hello @Chiru_1307
Yes Sailpoint Identity Rest API has that option. Try below code:-
URL:- /identityiq/rest/identities/{identityId}
PATCH
Request Body:-
{
"attributes": {
"enabled": false
}
}
Pass "enabled": true to enable identity and "enabled": false to disable identity
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
Method Name: PUT
Json Body: {
“userName”: “Name of the User”,
“active” : true // To enable the Identity
}
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} -
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:
- Enable the identity
- Automatically set the inactive attribute to false in IdentityIQ
- Setting “active”: false in the API will:
- Disable the identity
- Automatically set the inactive attribute to true in IdentityIQ
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.