Claude Platform Docs

Benutzer

Benutzer auflisten
client.beta.organization.users.list(query?, options?): Page<BetaOrganizationUser>
GET/v1/organizations/users

Listet die Mitglieder der Organisation auf.

Benutzer abrufen
client.beta.organization.users.retrieve(userID, options?): BetaOrganizationUser
GET/v1/organizations/users/{user_id}

Ruft ein Mitglied der Organisation anhand der Benutzer-ID ab.

Benutzer aktualisieren
client.beta.organization.users.update(userID, body, options?): BetaOrganizationUser
POST/v1/organizations/users/{user_id}

Aktualisiert die Organisationsrolle eines Mitglieds.

Benutzer entfernen
client.beta.organization.users.remove(userID, options?): UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

Entfernt ein Mitglied aus der Organisation.

Benutzer abmelden
client.beta.organization.users.signOut(userID, params?, options?): BetaOrganizationUser
POST/v1/organizations/users/{user_id}/sign_out
Requires anthropic-beta: admin-user-sign-out-2026-10-08. Learn how to send beta headers.

Meldet ein Mitglied überall von Claude ab, ohne es aus der Organisation zu entfernen. Dadurch werden seine Anmeldesitzungen beendet und seine vertrauenswürdigen Geräte überall dort entfernt, wo es Claude verwendet, einschließlich anderer Organisationen und Einzeltarife. Außerdem werden die OAuth-Token beendet, die ihm für diese Organisation ausgestellt wurden, sodass sich Apps wie Claude Code erneut anmelden müssen.

Models
interface BetaCannotSignOutManagedMemberErrorDetails { error_code }
error_code: "cannot_sign_out_managed_member"
interface BetaCannotSignOutMembershipAdminErrorDetails { error_code }
error_code: "cannot_sign_out_membership_admin"
interface BetaCannotSignOutOwnerErrorDetails { error_code }
error_code: "cannot_sign_out_owner"
interface BetaCannotSignOutPrimaryOwnerErrorDetails { error_code }
error_code: "cannot_sign_out_primary_owner"
interface BetaCannotSignOutPrivilegedMemberErrorDetails { error_code }
error_code: "cannot_sign_out_privileged_member"
interface BetaCannotSignOutSelfErrorDetails { error_code }
error_code: "cannot_sign_out_self"
interface BetaOrganizationUser { type: "user"; id; added_at; /* 3 more */ }
type: "user"

Object type.

For Users, this is always "user".

defaultuser
id: string

ID of the User.

added_at: string

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

formatdate-time
email: string

Email of the User.

name: string

Name of the User.

Organization role of the User.

One of the following:
"admin"
"billing"
"claude_code_user"
"developer"
"managed"
"membership_admin"
"owner"
"primary_owner"
"user"
interface UserRemoveResponse { type: "user_deleted"; id }
type: "user_deleted"

Deleted object type.

For Users, this is always "user_deleted".

defaultuser_deleted
id: string

ID of the User.

Errors
class BetaCannotSignOutPrimaryOwnerError extends BadRequestError { errorCode; details }⁠HTTP status 400

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

errorCode: "cannot_sign_out_primary_owner"
error_code: "cannot_sign_out_primary_owner"
class BetaCannotSignOutSelfError extends BadRequestError { errorCode; details }⁠HTTP status 400

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

errorCode: "cannot_sign_out_self"
details: BetaCannotSignOutSelfErrorDetails { error_code }
error_code: "cannot_sign_out_self"
class BetaCannotSignOutManagedMemberError extends PermissionDeniedError { errorCode; details }⁠HTTP status 403

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.

errorCode: "cannot_sign_out_managed_member"
error_code: "cannot_sign_out_managed_member"
class BetaCannotSignOutMembershipAdminError extends PermissionDeniedError { errorCode; details }⁠HTTP status 403

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

errorCode: "cannot_sign_out_membership_admin"
error_code: "cannot_sign_out_membership_admin"
class BetaCannotSignOutOwnerError extends PermissionDeniedError { errorCode; details }⁠HTTP status 403

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.

errorCode: "cannot_sign_out_owner"
details: BetaCannotSignOutOwnerErrorDetails { error_code }
error_code: "cannot_sign_out_owner"
class BetaCannotSignOutPrivilegedMemberError extends PermissionDeniedError { errorCode; details }⁠HTTP status 403

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

errorCode: "cannot_sign_out_privileged_member"
error_code: "cannot_sign_out_privileged_member"