Claude Platform Docs

Benutzer entfernen

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

Entfernt ein Mitglied aus der Organisation.

Parameters
userID: string⁠Path parameter

ID of the User.

Returns
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.

Benutzer entfernen
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});

const user = await client.organization.users.remove("user_id");

console.log(user.id);
Returns Examples
Response 200
{
  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
  "type": "user_deleted"
}