Claude Platform Docs

Lister les membres d'un groupe RBAC

MemberListPage Beta.Organization.RbacGroups.Members.List(parameters, cancellationToken = default)
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

Lister les membres d'un groupe RBAC.

L'API RBAC Groups est disponible uniquement pour les organisations Claude Enterprise.

Parameters
MemberListParams parameters
required string rbacGroupID⁠Path parameter

ID of the RBAC Group.

long limit⁠Query parameter

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

minimum1
maximum1000
string? page⁠Query parameter

Optionally set to the next_page token from the previous response.

Returns
class BetaRbacGroupMember { Type = "rbac_group_member"; CreatedAt; Email; /* 2 more */ }
JsonElement Type = "rbac_group_member"

Object type.

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

required DateTimeOffset CreatedAt

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

formatdate-time
required string Email

Email of the User.

required string RbacGroupID

ID of the RBAC Group.

required string UserID

ID of the User.

Lister les membres d'un groupe RBAC
using System;
using Anthropic.Models.Beta.Organization.RbacGroups.Members;

MemberListParams parameters = new() { RbacGroupID = "rbac_group_id" };

var page = await client.Beta.Organization.RbacGroups.Members.List(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}
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"
}