Remove user from organization
You can remove a user from an organization by using the following endpoint.
HTTP request
DELETE https://$instanceId.id.nevis.cloud/nevis/api/v1/users/$userId/organization
Parameters
Parameter | In | Type | Required / Optional | Description |
---|---|---|---|---|
instanceId | path | string | required | The ID of your Identity Cloud instance. |
userId | path | string | required | The ID of the user. |
Example request
userId=your-user-id-123
curl --request DELETE "https://$instanceId.id.nevis.cloud/nevis/api/v1/users/$userId/organization" \
--header "Authorization: Bearer $accessKey"
HTTP response
On success
HTTP/1.1 204
is returned if the user is successfully removed from the organization.
On missing user
HTTP/1.1 404
is returned if the user with the given userId
is not found.
On failure
HTTP/1.1 401
is returned if the authorization fails due to an invalid access key.
HTTP/1.1 500
is returned if an unexpected error occurs.