跳至主要内容

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

No Content