Remove user from organization
DELETE/api/v1/orgs/{orgId}/users/{userId}
Remove a user from an organization by specifying both orgId and userId.
Usage
DELETE /orgs/{orgId}/users/{userId}
Parameters
orgId(Guid, required): the ID of the organization.userId(string, required): the user ID of the user to remove from the organization.
Warning: Removing a user from this organization will also remove the user from all sub-organizations.
Responses
204 No Content: user successfully removed from organization.403 Forbidden: caller is not an admin of the organization, or caller is attempting to remove themselves.404 Not Found: organization or user not found.409 Conflict: cannot delete the last admin in the organization.
Security
This API requires authentication. Only admins of the target organization can remove members. An admin cannot remove their own membership.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
- 500
- 501
No Content
Bad Request
Unauthorized
Forbidden: caller is not admin in the organization, or attempted self-removal.
Not Found: organization or user not found.
Conflict: Cannot delete the last admin in the organization.
Internal Server Error
Not Implemented