Claude Platform Docs

RBACグループメンバーの一覧を取得

$client->organization->rbacGroups->members->list(string rbacGroupID, ?int limit, ?string page): PageCursor<RBACGroupMember>
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

RBACグループのメンバーを一覧表示します。

RBAC Groups API は Claude Enterprise 組織でのみ利用可能です。

Parameters
rbacGroupID: string⁠Path parameter

ID of the RBAC Group.

limit?: optional int⁠Query parameter

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

default20
page?: optional string⁠Query parameter

Optionally set to the next_page token from the previous response.

Returns
class RBACGroupMember { $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');

$page = $client->organization->rbacGroups->members->list(
  'rbac_group_id', limit: 1, page: 'eyJjdXJzb3IiOiAicmJhY19ncm91cF8wMSJ9'
);

var_dump($page);
Returns Examples
Response 200
{
  "data": [
    {
      "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"
    }
  ],
  "has_more": false,
  "next_page": "eyJjdXJzb3IiOiAicmJhY19ncm91cF8wMSJ9"
}