Disable Account API

I’m trying to disable an account.

I’m not sure what or where to get the externalVerificationId or if these values are needed.

{
  "externalVerificationId": "3f9180835d2e5168015d32f890ca1581",
  "forceProvisioning": false
}

Tried and get a id but the account is still active.

What am I doing wrong?

You shouldn’t need to provide the externalVerificationId. Have you tried disabling the account with an empty request body?

I tried sending an API call without body but getting 400 error, Returned if the request body is invalid.

Can you try the API as below, replace :id with actual account id

POST 'https://sailpoint.api.identitynow.com/v3/accounts/:id/disable'
Content-Type: application/json
Authorization: Bearer <TOKEN>

Body - raw json -
{
  "externalVerificationId": "",
  "forceProvisioning": false
}

If that still doesn’t work, try the old CC api ( can be deprecated anytime)

POST {{api-url}}/cc/api/account/provision/:id
Body - form data
disabled:true

@2135797 Try with an empty object body: “{}”. I get the same error if I set the body to none:

If not, can you give an example of the account with its id, the source type, the request headers.

Example that works:

Body: { }

Headers: ContentType: application/json

User’s account in UI: (#4) - Disabled
image

Thank you for reply @sharvari and @ethompson

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