Claude Platform Docs

RBAC 그룹 멤버 추가

$client->beta->organization->rbacGroups->members->add(string rbacGroupID, string userID): BetaRBACGroupMember
POST/v1/organizations/rbac_groups/{rbac_group_id}/members

RBAC 그룹에 사용자를 추가합니다. 테넌트의 조직이 SCIM 프로비저닝을 사용하는 동안에는 ID 공급자가 프로비저닝한 그룹(소스 유형 "scim")의 멤버십을 API로 수정할 수 없습니다.

RBAC 그룹 API는 Claude Enterprise 조직에서만 사용할 수 있습니다.

Parameters
rbacGroupID: string⁠Path parameter

ID of the RBAC Group.

userID: string

ID of the User.

Returns
class BetaRBACGroupMember { $type = 'rbac_group_member'; $createdAt; $email; /* 2 more */ }
"rbac_group_member" type

Object type.

For RBAC Group Members, this is always "rbac_group_member".

\Datetime createdAt

RFC 3339 timestamp of when the User was added to the RBAC Group.

string email

Email of the User.

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');

$betaRBACGroupMember = $client->beta->organization->rbacGroups->members->add(
  'rbac_group_id', userID: 'user_01WxYzAbCdEfGhJkMnPqRsTu'
);

var_dump($betaRBACGroupMember);
Returns Examples
Response 200
{
  "created_at": "2024-10-30T23:58:27.427722Z",
  "email": "user@emaildomain.com",
  "rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
  "type": "rbac_group_member",
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
}