Claude Platform Docs

사용자

사용자 목록 조회
beta.organization.users.list(**kwargs) -> Page<BetaOrganizationUser>
GET/v1/organizations/users

조직의 멤버를 나열합니다.

사용자 조회
beta.organization.users.retrieve(user_id) -> BetaOrganizationUser
GET/v1/organizations/users/{user_id}

사용자 ID로 조직의 멤버를 조회합니다.

사용자 업데이트
beta.organization.users.update(user_id, **kwargs) -> BetaOrganizationUser
POST/v1/organizations/users/{user_id}

멤버의 조직 역할을 업데이트합니다.

사용자 제거
beta.organization.users.remove(user_id) -> UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

조직에서 멤버를 제거합니다.

사용자 로그아웃
beta.organization.users.sign_out(user_id, **kwargs) -> 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.

멤버를 조직에서 제거하지 않고 Claude를 사용하는 모든 곳에서 로그아웃시킵니다. 이 작업은 다른 조직 및 개인 플랜을 포함하여 해당 멤버가 Claude를 사용하는 모든 곳에서 로그인 세션을 종료하고 신뢰할 수 있는 기기를 제거합니다. 또한 이 조직에 대해 해당 멤버에게 발급된 OAuth 토큰도 종료하므로, Claude Code와 같은 앱은 다시 로그인해야 합니다.

Models
class BetaCannotSignOutManagedMemberErrorDetails { error_code }
error_code: :cannot_sign_out_managed_member
class BetaCannotSignOutMembershipAdminErrorDetails { error_code }
error_code: :cannot_sign_out_membership_admin
class BetaCannotSignOutOwnerErrorDetails { error_code }
error_code: :cannot_sign_out_owner
class BetaCannotSignOutPrimaryOwnerErrorDetails { error_code }
error_code: :cannot_sign_out_primary_owner
class BetaCannotSignOutPrivilegedMemberErrorDetails { error_code }
error_code: :cannot_sign_out_privileged_member
class BetaCannotSignOutSelfErrorDetails { error_code }
error_code: :cannot_sign_out_self
class BetaOrganizationUser { type: :user, id, added_at, 3 more }
type: :user

Object type.

For Users, this is always "user".

id: String

ID of the User.

added_at: Time

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
class UserRemoveResponse { type: :user_deleted, id }
type: :user_deleted

Deleted object type.

For Users, this is always "user_deleted".

id: String

ID of the User.

Errors
class BetaCannotSignOutPrimaryOwnerError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :cannot_sign_out_primary_owner
error_code: :cannot_sign_out_primary_owner
class BetaCannotSignOutSelfError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :cannot_sign_out_self
details: BetaCannotSignOutSelfErrorDetails { error_code }
error_code: :cannot_sign_out_self
class BetaCannotSignOutManagedMemberError < Anthropic::Errors::PermissionDeniedError { error_code, 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.

error_code: :cannot_sign_out_managed_member
error_code: :cannot_sign_out_managed_member
class BetaCannotSignOutMembershipAdminError < Anthropic::Errors::PermissionDeniedError { error_code, 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.

error_code: :cannot_sign_out_membership_admin
error_code: :cannot_sign_out_membership_admin
class BetaCannotSignOutOwnerError < Anthropic::Errors::PermissionDeniedError { error_code, 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.

error_code: :cannot_sign_out_owner
details: BetaCannotSignOutOwnerErrorDetails { error_code }
error_code: :cannot_sign_out_owner
class BetaCannotSignOutPrivilegedMemberError < Anthropic::Errors::PermissionDeniedError { error_code, 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.

error_code: :cannot_sign_out_privileged_member
error_code: :cannot_sign_out_privileged_member