Claude Platform Docs

使用者

列出使用者
client.organization.users.list(query?, options?): Page<OrganizationUser>
GET/v1/organizations/users

列出組織的成員。

取得使用者
client.organization.users.retrieve(userID, options?): OrganizationUser
GET/v1/organizations/users/{user_id}

依使用者 ID 擷取組織成員。

更新使用者
client.organization.users.update(userID, body, options?): OrganizationUser
POST/v1/organizations/users/{user_id}

更新成員的組織角色。

移除使用者
client.organization.users.remove(userID, options?): UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

從組織中移除成員。

Models
interface OrganizationUser { 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.