Claude Platform Docs

使用者

列出使用者
client.Beta.Organization.Users.List(ctx, query) (*Page[BetaOrganizationUser], error)
GET/v1/organizations/users

列出組織的成員。

取得使用者
client.Beta.Organization.Users.Get(ctx, userID) (*BetaOrganizationUser, error)
GET/v1/organizations/users/{user_id}

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

更新使用者
client.Beta.Organization.Users.Update(ctx, userID, body) (*BetaOrganizationUser, error)
POST/v1/organizations/users/{user_id}

更新成員的組織角色。

移除使用者
client.Beta.Organization.Users.Remove(ctx, userID) (*BetaOrganizationUserRemoveResponse, error)
DELETE/v1/organizations/users/{user_id}

從組織中移除成員。

Models
type BetaOrganizationUser struct { Type: "user"; ID; AddedAt; /* 3 more */ }