Claude Platform Docs

Users

List Users
$client->beta->organization->users->list(?string afterID, ?string beforeID, ?string email, ?int limit, ?list<string> roles): Page<OrganizationUser>
GET/v1/organizations/users

List the organization's members.

Get User
$client->beta->organization->users->retrieve(string userID): OrganizationUser
GET/v1/organizations/users/{user_id}

Retrieve a member of the organization by user ID.

Update User
$client->beta->organization->users->update(string userID, Role role): OrganizationUser
POST/v1/organizations/users/{user_id}

Update a member's organization role.

Remove User
$client->beta->organization->users->remove(string userID): UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

Remove a member from the organization.

Sign Out User
$client->beta->organization->users->signOut(string userID, ?list<AnthropicBeta> betas): OrganizationUser
POST/v1/organizations/users/{user_id}/sign_out
Requires anthropic-beta: admin-user-sign-out-2026-10-08. Learn how to send beta headers.

Sign a member out of Claude everywhere, without removing them from the organization. This ends their sign-in sessions and removes their trusted devices wherever they use Claude, including other organizations and individual plans. It also ends the OAuth tokens issued to them for this organization, so apps such as Claude Code must sign in again.

Models
"cannot_sign_out_managed_member" errorCode
"cannot_sign_out_membership_admin" errorCode
class CannotSignOutOwnerErrorDetails { $errorCode; }
"cannot_sign_out_owner" errorCode
"cannot_sign_out_primary_owner" errorCode
"cannot_sign_out_privileged_member" errorCode
class CannotSignOutSelfErrorDetails { $errorCode; }
"cannot_sign_out_self" errorCode
class OrganizationUser { $type = 'user'; $id; $addedAt; /* 3 more */ }
"user" type

Object type.

For Users, this is always "user".

string id

ID of the User.

\Datetime addedAt

RFC 3339 datetime string indicating when the User joined the Organization.

string email

Email of the User.

string name

Name of the User.

Organization role of the User.

Errors
class CannotSignOutPrimaryOwnerException extends BadRequestException { getErrorCode(); getDetails(); }

The member is the organization's primary owner, whom no API key or token can sign out.

getErrorCode(): "cannot_sign_out_primary_owner"
"cannot_sign_out_primary_owner" errorCode
class CannotSignOutSelfException extends BadRequestException { getErrorCode(); getDetails(); }

The member is the user the API key or token belongs to.

getErrorCode(): "cannot_sign_out_self"
"cannot_sign_out_self" errorCode
class CannotSignOutManagedMemberException extends PermissionDeniedException { getErrorCode(); getDetails(); }

The member has the managed role, and this API key or token cannot sign them out. The error message says which keys and tokens can.

getErrorCode(): "cannot_sign_out_managed_member"
"cannot_sign_out_managed_member" errorCode
class CannotSignOutMembershipAdminException extends PermissionDeniedException { getErrorCode(); getDetails(); }

The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.

getErrorCode(): "cannot_sign_out_membership_admin"
"cannot_sign_out_membership_admin" errorCode
class CannotSignOutOwnerException extends PermissionDeniedException { getErrorCode(); getDetails(); }

The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the write:members scope can.

getErrorCode(): "cannot_sign_out_owner"
"cannot_sign_out_owner" errorCode
class CannotSignOutPrivilegedMemberException extends PermissionDeniedException { getErrorCode(); getDetails(); }

This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.

getErrorCode(): "cannot_sign_out_privileged_member"
"cannot_sign_out_privileged_member" errorCode