Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Lister les préférences personnelles des membres de l'organisation

GET/v1/compliance/organizations/{org_uuid}/user_preferences

Ce point de terminaison est en bêta.

Liste les préférences personnelles des membres actuels d'une organisation.

Renvoie, pour chaque membre, le texte « Instructions pour Claude » et le texte « Instructions globales » de Cowork. Il s'agit dans les deux cas de paramètres au niveau du compte : le même texte est renvoyé pour chaque organisation à laquelle le membre appartient. Les membres sont listés dans l'ordre dans lequel ils ont rejoint l'organisation, du plus ancien au plus récent ; utilisez limit et page pour paginer. Une page peut contenir moins de limit lignes, voire aucune, sans être la dernière page : le serveur limite la quantité de travail effectuée par requête. Suivez next_page jusqu'à ce qu'il soit null.

Path parameters
org_uuid: string

The organization's UUID

Query parameters
include_unset: optional boolean

When true, list every current member, with null for each value they have not set. By default only members with at least one value set are listed.

defaultfalse
limit: optional number

Maximum results (default: 20, max: 100)

default20
minimum1
maximum100
page: optional string

Opaque pagination token from a previous response's next_page field. 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.

user_ids: optional array of string

Restrict the list to these users (max 10 per request). An entry that does not name a current member of the organization matches nothing. Omit to list every eligible member. Enumerate IDs via GET /v1/compliance/organizations/{org_uuid}/users.

maxItems10
Headers
"anthropic-version": string

The version of the Claude API to use. Send an available version on every request. A request that sends any other value, including an empty one, returns a 400 error. This endpoint treats a request that omits this header as version 2023-06-01; some other Compliance API endpoints return a 400 error instead.

See API versions for the available versions.

"x-api-key": optional string
Returns
data: array of object{ conversation_preferences, cowork_global_instructions, user }

Current organization members in the order they joined the organization, oldest first. By default only members with at least one value set are listed; with include_unset=true every member is.

conversation_preferences: string or null

The member's "Instructions for Claude" text from their personal settings, with leading and trailing whitespace removed. null when the member has never set it or has cleared it.

cowork_global_instructions: string or null

The member's "Global instructions" text for Cowork, Claude's desktop agent, with leading and trailing whitespace removed. null when the member has never set it or has cleared it.

user: object{ id, email_address }

The organization member.

id: string

User identifier

email_address: string

User's current email address

has_more: boolean

Whether there is a further page to request. A page can hold fewer records than limit, or none, and still have more: the server bounds the work it does per request.

next_page: string or null

Token to retrieve the next page. Use this as the 'page' parameter in your next request; null on the last page.

Lister les préférences personnelles des membres de l'organisation
cURL
curl https://api.anthropic.com/v1/compliance/organizations/$ORG_UUID/user_preferences \
    -H 'anthropic-version: 2026-10-21' \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "data": [
    {
      "conversation_preferences": "Always answer in British English.",
      "cowork_global_instructions": "Prefer short status updates.",
      "user": {
        "id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
        "email_address": "jane.doe@example.com"
      }
    }
  ],
  "has_more": true,
  "next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="
}