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")