Groups
List Compliance Groups
GET /v1/compliance/groups
List Compliance Groups
Query parameters
limit: optional numberMaximum results (default: 500, max: 1000)
default: 500, maximum: 1000, minimum: 1
name_prefix: optional stringFilter groups by name prefix
default: ""
page: optional stringOpaque pagination token from a previous response's
next_pagefield. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
data: array of objectList of groups
id: stringGroup identifier (tagged ID)
created_at: string or nullGroup creation timestamp (RFC 3339)
format: date-time
description: stringGroup description
name: stringGroup name
roles: array of string or nullRole IDs assigned to this group.
source_type: stringHow the group was created ('direct' or 'scim')
updated_at: string or nullGroup last-updated timestamp (RFC 3339)
format: date-time
has_more: booleanWhether more records exist beyond the current result set
next_page: string or nullToken to retrieve the next page. Use this as the 'page' parameter in your next request
Example
curl https://api.anthropic.com/v1/compliance/groups \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response (200)
{
"data": [
{
"id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"created_at": "2025-03-12T18:22:41.123456Z",
"description": "All members of the engineering organization",
"name": "Engineering Team",
"roles": [
"rbac_role_01SGBg3kEnZrdsVR2QmyJbvD",
"rbac_role_01HtCd4mFoAseWS3RnzKcwE7"
],
"source_type": "scim",
"updated_at": "2025-03-14T09:05:17.456789Z"
}
],
"has_more": true,
"next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="
}Get Compliance Group
GET /v1/compliance/groups/\{group_id\}
Get Compliance Group
Path parameters
group_id: stringThe group ID (tagged ID, e.g., rbac_group_abc123)
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
id: stringGroup identifier (tagged ID)
created_at: string or nullGroup creation timestamp (RFC 3339)
format: date-time
description: stringGroup description
name: stringGroup name
roles: array of string or nullRole IDs assigned to this group.
source_type: stringHow the group was created ('direct' or 'scim')
updated_at: string or nullGroup last-updated timestamp (RFC 3339)
format: date-time
Example
curl https://api.anthropic.com/v1/compliance/groups/$GROUP_ID \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response (200)
{
"id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"created_at": "2025-03-12T18:22:41.123456Z",
"description": "All members of the engineering organization",
"name": "Engineering Team",
"roles": [
"rbac_role_01SGBg3kEnZrdsVR2QmyJbvD",
"rbac_role_01HtCd4mFoAseWS3RnzKcwE7"
],
"source_type": "scim",
"updated_at": "2025-03-14T09:05:17.456789Z"
}Domain types
Group Retrieve Response
GroupRetrieveResponse objectGroup information for compliance responses.
id: stringGroup identifier (tagged ID)
created_at: string or nullGroup creation timestamp (RFC 3339)
format: date-time
description: stringGroup description
name: stringGroup name
roles: array of string or nullRole IDs assigned to this group.
source_type: stringHow the group was created ('direct' or 'scim')
updated_at: string or nullGroup last-updated timestamp (RFC 3339)
format: date-time
Group List Response
GroupListResponse objectGroup information for compliance responses.
id: stringGroup identifier (tagged ID)
created_at: string or nullGroup creation timestamp (RFC 3339)
format: date-time
description: stringGroup description
name: stringGroup name
roles: array of string or nullRole IDs assigned to this group.
source_type: stringHow the group was created ('direct' or 'scim')
updated_at: string or nullGroup last-updated timestamp (RFC 3339)
format: date-time
Groups › Members
List Compliance Group Members
GET /v1/compliance/groups/\{group_id\}/members
List Compliance Group Members
Path parameters
group_id: stringThe group ID (tagged ID, e.g., rbac_group_abc123)
Query parameters
limit: optional numberMaximum results (default: 500, max: 1000)
default: 500, maximum: 1000, minimum: 1
page: optional stringOpaque pagination token from a previous response's
next_pagefield. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
data: array of objectList of group members
created_at: string or nullMembership creation timestamp (RFC 3339)
format: date-time
email: stringMember email address
updated_at: string or nullMembership last-updated timestamp (RFC 3339)
format: date-time
user_id: stringMember user identifier (tagged ID)
has_more: booleanWhether more records exist beyond the current result set
next_page: string or nullToken to retrieve the next page. Use this as the 'page' parameter in your next request
Example
curl https://api.anthropic.com/v1/compliance/groups/$GROUP_ID/members \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response (200)
{
"data": [
{
"created_at": "2025-03-12T18:22:41.123456Z",
"email": "jane.doe@example.com",
"updated_at": "2025-03-14T09:05:17.456789Z",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
}
],
"has_more": true,
"next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="
}