使用者
列出使用者
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}
從組織中移除成員。
登出使用者
client.Beta.Organization.Users.SignOut(ctx, userID, body) (*BetaOrganizationUser, error)POST/v1/organizations/users/{user_id}/sign_out
Requires
anthropic-beta: admin-user-sign-out-2026-10-08. Learn how to send beta headers.將成員從其使用 Claude 的所有地方登出,而不會將其從組織中移除。這會結束其登入工作階段,並移除其在任何使用 Claude 之處的受信任裝置,包括其他組織和個人方案。這也會終止為此組織核發給他們的 OAuth 權杖,因此 Claude Code 等應用程式必須重新登入。