Skip to main content

Delete organization user by composite key

DELETE 

/api/v1/orgs/{orgId}/users/{userId}

Delete an organization user 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 Desk user ID of the user to remove from the organization.

Responses

  • 204 No Content: user successfully removed from organization. Sub-organizations will also have the user removed.
  • 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