Claude Platform Docs

Utilisateurs

Lister les utilisateurs
$ ant beta:organization:users list
GET/v1/organizations/users

Listez les membres de l'organisation.

Obtenir un utilisateur
$ ant beta:organization:users retrieve
GET/v1/organizations/users/{user_id}

Récupérez un membre de l'organisation par son ID utilisateur.

Mettre à jour un utilisateur
$ ant beta:organization:users update
POST/v1/organizations/users/{user_id}

Mettez à jour le rôle d'un membre dans l'organisation.

Retirer un utilisateur
$ ant beta:organization:users remove
DELETE/v1/organizations/users/{user_id}

Retirez un membre de l'organisation.

Déconnecter un utilisateur
$ ant beta:organization:users sign-out
POST/v1/organizations/users/{user_id}/sign_out
Requires anthropic-beta: admin-user-sign-out-2026-10-08. How to send beta headers

Déconnecte un membre de Claude partout, sans le retirer de l'organisation. Cela met fin à ses sessions de connexion et supprime ses appareils de confiance partout où il utilise Claude, y compris dans d'autres organisations et sur des forfaits individuels. Cela met également fin aux jetons OAuth qui lui ont été émis pour cette organisation, de sorte que les applications telles que Claude Code doivent se reconnecter.

Models
beta_cannot_sign_out_managed_member_error_details: object{ error_code }

The member has the managed role, and this API key or token cannot sign them out. The error message says which keys and tokens can.

error_code: "cannot_sign_out_managed_member"
beta_cannot_sign_out_membership_admin_error_details: object{ error_code }

The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.

error_code: "cannot_sign_out_membership_admin"
beta_cannot_sign_out_owner_error_details: object{ error_code }

The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the write:members scope can.

error_code: "cannot_sign_out_owner"
beta_cannot_sign_out_primary_owner_error_details: object{ error_code }

The member is the organization's primary owner, whom no API key or token can sign out.

error_code: "cannot_sign_out_primary_owner"
beta_cannot_sign_out_privileged_member_error_details: object{ error_code }

This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.

error_code: "cannot_sign_out_privileged_member"
beta_cannot_sign_out_self_error_details: object{ error_code }

The member is the user the API key or token belongs to.

error_code: "cannot_sign_out_self"
beta_organization_user: object{ type: "user", id, added_at, 3 more }