Deleting an identity¶
You can delete an identity.
Method and URI¶
To delete an identity, use a DELETE method and a URI:
DELETE https://{hostname|IPv4}/api/identity/user/{identityUserId}
Tip
To get an {identityUserId}
value based on its name, follow the instructions in Getting an {identityUserId}.
Parameters¶
None.
Data¶
None.
Example: Delete an identity¶
Assume that you have an identity AD-sarah.wiseman ({identityUserId}
2101).
A Python snippet that is similar to the following example can be used to delete the identity:
identity_user_id = "2101" # AD-sarah.wiseman
requests.delete('https://' + spp_ipv4 + '/api/identity/user/'
+ identity_user_id,
headers={...}, verify=...)
Ensure you get a response with the HTTP status of 204 (No Content) and that you no longer see the identity item AD-sarah.wiseman.