Hi Dmitri,
Disabling identities is currently not an available action in workflows, and there is no beta/v3 API for doing this either. The UI item you referenced is powered by a private API that requires a different GUID for identities than our v3 APIs use. Engineering is working on a v3 API collection for identities that will eventually support enable/disable operations. This is a valid use case, and one we will eventually support.
Here are the relevant API calls you need to do this.
CAUTION: /cc APIs weren’t designed for public use, and SailPoint offers no guarantees that they won’t change without notice. Please use with caution.
Start by getting the old ID of the user, using the user’s email address as a search key.
GET https://{tenant}.api.identitynow.com/cc/api/user/list?filters=[{"property":"email","operation":"EQ","value":"[email protected]"}]
This will return the following body:
{
"total": 1,
"items": [
{
"id": "3498063",
"name": "Amanda Ross",
"displayName": "Amanda.Ross",
"alias": "Amanda.Ross",
"email": "[email protected]",
"status": "ACTIVE",
"enabled": false,
"pending": false,
"externalId": "2c9180837dfe6949017e208e26b27b28",
"processingDetails": null
}
]
}
Next, send a POST request to disable the identity.
POST https://{tenant}.api.identitynow.com/cc/api/user/enabled
This POST request uses form data. Please refer to the following cURL call to see how to use the form data. You can import cURL into postman as well.
curl --location --request POST 'https://{devrel}.api.identitynow.com/cc/api/user/enabled' \
--header 'Authorization: Bearer {access_token} \
--form 'ids="3498063"' \
--form 'enabled="false"'