Claude Platform Docs

RBACグループメンバーの削除

$client->organization->rbacGroups->members->remove(string userID, string rbacGroupID): DeletedRBACGroupMember
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}

RBACグループからユーザーを削除します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")のメンバーシップをAPIで変更することはできません。

RBAC Groups APIはClaude Enterpriseの組織のみが利用できます。

Parameters
rbacGroupID: string⁠Path parameter

ID of the RBAC Group.

userID: string⁠Path parameter

ID of the User.

Returns
class DeletedRBACGroupMember { $type = 'rbac_group_member_deleted'; $rbacGroupID; $userID; }
"rbac_group_member_deleted" type

Deleted object type. For RBAC Group Members, this is always "rbac_group_member_deleted".

string rbacGroupID

ID of the RBAC Group.

string userID

ID of the User.

RBACグループメンバーの削除
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;

$client = new Client(apiKey: 'my-anthropic-api-key');

$deletedRBACGroupMember = $client->organization->rbacGroups->members->remove(
  'user_id', rbacGroupID: 'rbac_group_id'
);

var_dump($deletedRBACGroupMember);
Returns Examples
Response 200
{
  "rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
  "type": "rbac_group_member_deleted",
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
}