Claude Platform Docs

用户

列出用户
UserListPage beta().organization().users().list(params = UserListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/users

列出组织的成员。

获取用户
BetaOrganizationUser beta().organization().users().retrieve(params = UserRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/users/{user_id}

按用户 ID 检索组织成员。

更新用户
BetaOrganizationUser beta().organization().users().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/users/{user_id}

更新成员的组织角色。

移除用户
UserRemoveResponse beta().organization().users().remove(params = UserRemoveParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/users/{user_id}

将成员从组织中移除。

Models
class BetaOrganizationUser { type = "user"; id; addedAt; /* 3 more */ }
JsonValue type = "user"

Object type.

For Users, this is always "user".

String id

ID of the User.

LocalDateTime addedAt

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

formatdate-time
String email

Email of the User.

String name

Name of the User.

Organization role of the User.

One of the following:
ADMIN("admin")
BILLING("billing")
CLAUDE_CODE_USER("claude_code_user")
DEVELOPER("developer")
MANAGED("managed")
MEMBERSHIP_ADMIN("membership_admin")
OWNER("owner")
PRIMARY_OWNER("primary_owner")
USER("user")