Claude Platform Docs

用户

列出用户
UserListPage Beta.Organization.Users.List(parameters, cancellationToken = default)
GET/v1/organizations/users

列出组织的成员。

获取用户
BetaOrganizationUser Beta.Organization.Users.Retrieve(parameters, cancellationToken = default)
GET/v1/organizations/users/{user_id}

按用户 ID 检索组织成员。

更新用户
BetaOrganizationUser Beta.Organization.Users.Update(parameters, cancellationToken = default)
POST/v1/organizations/users/{user_id}

更新成员的组织角色。

移除用户
UserRemoveResponse Beta.Organization.Users.Remove(parameters, cancellationToken = default)
DELETE/v1/organizations/users/{user_id}

从组织中移除成员。

Models
class BetaOrganizationUser { Type = "user"; ID; AddedAt; /* 3 more */ }
JsonElement Type = "user"

Object type.

For Users, this is always "user".

required string ID

ID of the User.

required DateTimeOffset AddedAt

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

formatdate-time
required string Email

Email of the User.

required string Name

Name of the User.

required BetaOrganizationRole Role

Organization role of the User.

One of the following:
Admin("admin")
Billing("billing")
ClaudeCodeUser("claude_code_user")
Developer("developer")
Managed("managed")
MembershipAdmin("membership_admin")
Owner("owner")
PrimaryOwner("primary_owner")
User("user")