One read of Claude Developer Platformapi-20261130T143719Z
71 pages moved out of 972 read.
What this read moved
26-50 of 71, page 2 of 3This capture is too large to show at once. Changes 26-50 of 71 are below, significant first; the rest are on the following screens.
manage-claude/compliance-errors Changed · +27 / -13 lines
manage-claude/compliance-org-data Changed · +14 / -10 lines
manage-claude/enterprise-admin-api-key-scopes New page · 128 lines, new page
## Who can select which scopes ## Scopes by API ### Admin API user management ### Admin API project tags ### Plugins API ### Claude Tag API ### Claude Code Managed Settings API ### Spend Limits API ### Analytics APIs ### Compliance API ### Across several APIs ## Scopes that work together or have limits ## Which organizations a key reaches
A whole new page. There's nothing to diff it against, so here is what it says.
--- title: Enterprise Admin API key scopes url: https://platform.claude.com/docs/en/manage-claude/enterprise-admin-api-key-scopes description: See what Enterprise Admin API key scopes allow, who can select them, and which organizations a key reaches. --- This page lists scopes that an [Enterprise Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#create-a-key-for-a-claude-enterprise-organization) can hold, what each one allows, and who can select it. ## Who can select which scopes * **[Primary owner](https://platform.claude.com/docs/en/manage-claude/user-management#organization-roles):** They can select any scope. * **Organization owner:** They can select only Compliance API scopes and only on a key for their own organization. For anything else, they need to ask the primary owner. ## Scopes by API ### Admin API user management * `read:members`: List and look up members and invites; read roles and their permissions. * `write:members`: Change member roles, remove members, [sign members out everywhere](https://platform.claude.com/docs/en/manage-claude/user-management#sign-a-member-out-everywhere) (in beta), and create and withdraw invites. * `read:rbac_groups`: Read groups and their members. * `write:rbac_groups`: Create, rename, and delete groups; add and remove group members. For the endpoints these scopes cover, see [User management](https://platform.claude.com/docs/en/manage-claude/user-management). ### Admin API project tags * `read:project_tags`: Read your organization’s tags, each tag’s list of values, and the tags set on each project. * `write:project_tags`: Add values to a tag’s list; set or remove the tags on each project. Both scopes act on every project in your organization, private projects included. Project tags are in beta. The Claude Help Center’s [Track spend by cost code with project tags](https://support.claude.com/en/articles/18251257-track-spend-by-cost-code-with-project-tags) article says which organizations can use them. It also says how to set tags through the Admin API. ### Plugins API * `read:plugins`: Read plugins and their settings, and download plugin files. * `write:plugins`: Upload plugins and versions, choose which version members are served, delete plugins (members’ personal plugins included), and change installation settings. For more on what each scope allows and which organizations it reads, see [Plugins API scopes](https://platform.claude.com/docs/en/manage-claude/plugins-api#scopes). ### Claude Tag API Claude Tag is Claude working as a teammate in Slack. An Access bundle is a named set of access, such as connectors and repositories, that Claude can use in a Slack channel or workspace. * `read:claude_tag`: Read Claude Tag’s Slack settings and Access bundles. * `write:claude_tag`: Set up and remove channels, change settings, change Access bundles’ instructions, and attach and detach Access bundles. For the endpoints these scopes cover, see [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api). ### Claude Code Managed Settings API * `read:claude_code_managed_settings`: Read these settings: * Whether Claude Code managed settings apply organization-wide or by group, and the group order * Each group’s settings * The default settings for everyone else * `write:claude_code_managed_settings`: Make these changes: * Change whether Claude Code managed settings apply organization-wide or by group, and change the group order * Create, replace, and delete each group’s settings * Set, replace, and clear the default settings The [Claude Code Managed Settings API](https://platform.claude.com/docs/en/api/beta/organization/claude_code/managed_settings) is in beta. These scopes act only on the organization you create the key in. ### Spend Limits API * `read:spend_limits`: Read the spend limit that applies to each member; read members’ increase requests. * `write:spend_limits`: Set or clear per-user spend limits; approve or deny increase requests. For the endpoints these scopes cover, see [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api). ### Analytics APIs * `read:analytics`: Read reports through these APIs: * Engagement, adoption, cost, and usage reports through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api) * Token usage and cost reports through the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) ### Compliance API * `read:compliance_activities`: Read the [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed). * `read:compliance_user_data`: Read these records: * [Chats, files, projects, and artifacts](https://platform.claude.com/docs/en/manage-claude/compliance-content-data) * [Session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions) * [Organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users) * [User preferences](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-user-preferences) (in beta) * [Group members](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-groups-and-members) * `delete:compliance_user_data`: Delete chats, files, projects, project documents, and code artifacts, such as Claude Docs documents. Deleting a chat deletes its other artifacts, but not its code artifacts. See [Content that remains after a delete](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#content-that-remains-after-a-delete) on the Retrieve and delete chats, files, and projects page. * `read:compliance_org_data`: Read these records and call these endpoints: * [Organization metadata](https://platform.claude.com/docs/en/manage-claude/compliance-org-data): names, types, roles, and groups * Effective settings * [Security posture](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference) * Every Plugins API `GET` endpoint For the endpoints these scopes cover, see [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api). ### Across several APIs * `read:org_audit`: Call these endpoints: * Every read endpoint of Admin API user management * Every read endpoint of the Compliance API * Every Plugins API `GET` endpoint Where the Compliance API is enabled, this scope reads members’ chats, files, projects, artifacts, and session transcripts. `read:org_audit` is read-only and meant for security audits. It doesn’t cover the other APIs on this page, such as the Spend Limits API or the analytics APIs. ## Scopes that work together or have limits * **Scopes from several APIs:** One key can hold scopes from several APIs, such as `read:analytics` and `read:spend_limits`. A key set to **All organizations** can hold only Compliance API, group, and audit scopes. See [Key access](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#key-access) on the Admin API keys and tokens page. * **Write and delete scopes:** The write and delete scopes on this page don’t cover read endpoints. To call those too, also select the read scope, such as `read:plugins` with `write:plugins`. * **The `managed` role:** To assign the [`managed` role](https://platform.claude.com/docs/en/manage-claude/user-management#organization-roles) on a role change or an invite, select both `write:members` and `write:rbac_groups`. The same pair assigns groups on an invite. * **Security posture attestations:** With `read:org_audit` or with both `read:compliance_user_data` and `read:compliance_org_data`, a key also reads who made a [Security posture attestation](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#who-attested-and-comments) where the endpoint returns it for the organization. ## Which organizations a key reaches Most scopes act only on the organization you create the key in. A Claude Enterprise organization normally belongs to a [parent organization](https://platform.claude.com/docs/en/manage-claude/administering-claude#which-organization-you-have), which can hold several linked organizations. Keys with Compliance API, group, or audit scopes can reach further: * **Compliance API scopes:** These reach all linked organizations when you select **All organizations** under [Key access](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#key-access), which the Admin API keys and tokens page describes. * **Group scopes (`read:rbac_groups` and `write:rbac_groups`):** These scopes act on groups. Groups belong to the parent organization, and its linked organizations share them. For which keys can hold these scopes, see [Groups and roles](https://platform.claude.com/docs/en/manage-claude/user-management#groups-and-roles) on the User management page. * **Audit scope (`read:org_audit`):** The primary owner can create a key with this scope for all linked organizations. That key can then read the Compliance API of every linked organization and the Plugins API of any that has access to it. See [Reading another organization under the same parent](https://platform.claude.com/docs/en/manage-claude/plugins-api#reading-another-organization-under-the-same-parent) on the Plugins API page.
manage-claude/enterprise-frontier-safeguards/external-storage Changed · +9 / -9 lines
manage-claude/enterprise-frontier-safeguards/safety-cases-api Changed · +416 / -80 lines
The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.
manage-claude/ip-allowlist Changed · +5 / -6 lines
manage-claude/organization-webhooks Changed · +9 / -9 lines
## If your default workspace uses an encryption key ## If your Default Workspace uses an encryption key
manage-claude/plugins-api Changed · +14 / -12 lines
manage-claude/rate-limits-api Changed · +6 / -2 lines
manage-claude/spend-limits-api Changed · +16 / -10 lines
### What happens when you delete a per-user override? ### Can you set a seat-tier or organization-wide default through this API? ### What happens when I delete a per-user override? ### Can I set a seat-tier or organization-wide default through this API?
manage-claude/usage-cost-analytics-api Changed · +28 / -25 lines
## On a cloud platform
manage-claude/usage-cost-api Changed · +21 / -41 lines
### Claude Enterprise organizations
manage-claude/user-management Changed · +28 / -15 lines
manage-claude/user-profiles-verification-portal Changed · +50 / -39 lines
## After the end customer links the user profile ## Link an AWS account or Google Cloud project ## After the end customer links the profile
manage-claude/user-profiles/attribute-requests New page · 404 lines, new page
## Before you begin ## Decide who gets a user profile ## Create a user profile for each end customer ### What to tell Anthropic about an end customer ### Send the create request ### Register an existing customer base ## Attribute each request ### Identify one person within a company ## Rules and special cases ### If a workspace has a user profile attached ### If a request returns a `400` ### If you send a batch
A whole new page. There's nothing to diff it against, so here is what it says.
---
title: Create user profiles and attribute requests
url: https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests
description: Create a user profile for each end customer and send its ID on every request for them. A safety restriction or ban can then apply to that one end customer.
---
User profiles tell Anthropic which of your end customers each API request is for. That way, a safety enforcement action, such as a restriction or a ban, can apply to one end customer instead of your whole organization. If you aren’t sure that you need user profiles, see [How user profiles work](https://platform.claude.com/docs/en/manage-claude/user-profiles/how-user-profiles-work).
If you write the code that serves your end customers, you create a user profile for each one with `POST /v1/user_profiles`. You keep the opaque `uprof_` ID it returns and send it on every request you make for them.
If you use Claude through a cloud platform, that platform determines which organization holds your user profiles and how you send their IDs. Read [Use user profiles on a cloud platform](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms) before you create your first user profile.
## Before you begin
You need the following:
* **An organization for end-customer traffic:** Keep it separate from the one for your own usage. Separate workspaces in the same organization aren’t enough. Only the organization for end-customer traffic needs user profiles. To create another organization on the Claude API, see “How to create a new organization” in [Create and manage Workspaces in the Claude Console](https://support.claude.com/en/articles/9796807).
* **Credentials for that organization:** To create and manage user profiles, use a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation) or OAuth token with the `workspace:developer` scope, or an API key. A workload identity federation token is a short-lived Anthropic token that you get in exchange for one from your own identity provider. If the credential belongs to a person, they need the developer, admin, or owner role in the organization, because a workspace role isn’t enough. If it belongs to a service account, the developer or admin role in the organization or the workspace works. To send user profile IDs, any credential from that organization that can call the Messages API works. You don’t need an Admin API key.
* **On a Microsoft Foundry deployment hosted on Anthropic, a linked organization:** Anthropic has to link the organization that holds your Foundry resource to the one that holds your user profiles. Until then, your Foundry requests can’t carry user profile IDs. See [If you use Microsoft Foundry](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#microsoft-foundry).
## Decide who gets a user profile
Each end customer gets one user profile, so a company gets a single one rather than one for each person in it. Send its ID on every request you make for anyone at the company. To also tell Anthropic which person a request comes from, see [Identify one person within a company](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#identify-individual-users-within-a-company).
The `access_type` you set depends on whether the end customer uses your product or buys API access from you, such as through your gateway:
| The end customer | `access_type` |
| ----- | ----- |
| Uses your product | `application` (the default, set when you leave `access_type` out) |
| Is a company that buys API access from you | `passthrough` (not the default, so you have to send it) |
Your own usage doesn’t need a user profile.
Don’t create a user profile for a workspace. A user profile belongs to your whole organization, so its ID works on requests through any workspace in the organization. The exception is [a workspace that has a different user profile attached](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-workspace-has-a-profile-attached). You can’t replace or remove that attachment.
## Create a user profile for each end customer
Create one user profile for each end customer before the first request that you send with its ID. Onboarding is a common place to do it. Because `POST /v1/user_profiles` isn’t idempotent, every call creates a new user profile, even when `reference_id` (your own ID for the end customer) matches an existing one. Store the ID it returns and reuse it.
If you already have end customers without user profiles, see the [guidance on registering an existing customer base](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#register-existing-end-customers) later in this section.
### What to tell Anthropic about an end customer
Every field is optional, except that an end customer who buys API access from you needs `access_type` set to `passthrough`. Besides `access_type`, you can send `name`, `metadata`, and these fields in `external_user_details`: `entity_type`, `country`, `reference_id`, `onboarded_at`, `account_status`, `name_hash`, and `email_hash`. For each field’s type, format, and length limit, see the [Create a user profile](https://platform.claude.com/docs/en/api/user_profiles/create) reference.
Follow these rules as you fill them in:
* **Names:** If you send `name`, use the end customer’s real-world name. For a company, that’s its legal name, if you know it.
* **Names you can’t share:** Leave out `name` and send `external_user_details.name_hash` instead.
* **Email addresses:** Send `external_user_details.email_hash`, because a user profile has no field for the address itself.
* **Hashes:** Compute the hashes yourself with a function you choose. They let Anthropic see which of your user profiles share a name or email address. Because only values computed the same way match, use the same function for every user profile and handle case and whitespace the same way.
* **Country:** `country` is the end customer’s country, not yours.
* **Your own ID:** `reference_id` takes your own stable identifier for the end customer, and it doesn’t have to be unique.
* **Health information:** Don’t include protected health information (PHI) in a user profile, because the user profiles API [isn’t a HIPAA-eligible service](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility).
For more, see [What a user profile contains and how Anthropic uses it](https://platform.claude.com/docs/en/manage-claude/user-profiles/how-user-profiles-work#what-a-profile-contains-and-how-anthropic-uses-it).
<Warning>
If you don’t know a value, leave it out instead of sending a placeholder. You can replace a value in `external_user_details` later, but you can’t clear it.
</Warning>
### Send the create request
The cURL samples on this page send an access token from `ANTHROPIC_AUTH_TOKEN`, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token. Set that variable only in the shell where you run them, because it takes precedence over federation environment variables and federation profiles.
This example creates a user profile for a company that buys API access from you, so it sets `access_type` to `passthrough`. For an `application` user profile, leave `access_type` out.
<CodeGroup>
```bash cURL
curl https://api.anthropic.com/v1/user_profiles \
-H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
-H "anthropic-version: 2026-10-21" \
-H "content-type: application/json" \
-d '{
"name": "Acme Analytics, Inc.",
"access_type": "passthrough",
"external_user_details": {
"reference_id": "cust-8f2a1c",
"country": "US"
}
}'
```
```bash CLI
ant user-profiles create \
--name "Acme Analytics, Inc." \
--access-type passthrough \
--external-user-details '{reference_id: cust-8f2a1c, country: US}'
```
```python Python
client = anthropic.Anthropic()
profile = client.user_profiles.create(
name="Acme Analytics, Inc.",
access_type="passthrough",
external_user_details={"reference_id": "cust-8f2a1c", "country": "US"},
)
print(profile.id)
```
```typescript TypeScript
const client = new Anthropic();
const profile = await client.userProfiles.create({
name: "Acme Analytics, Inc.",
access_type: "passthrough",
external_user_details: { reference_id: "cust-8f2a1c", country: "US" }
});
console.log(profile.id);
```
```csharp C#
AnthropicClient client = new();
var profile = await client.UserProfiles.Create(new()
{
Name = "Acme Analytics, Inc.",
AccessType = UserProfileAccessType.Passthrough,
ExternalUserDetails = new()
{
ReferenceID = "cust-8f2a1c",
Country = "US"
}
});
Console.WriteLine(profile.ID);
```
```go Go
client := anthropic.NewClient()
profile, err := client.UserProfiles.New(context.Background(), anthropic.UserProfileNewParams{
Name: anthropic.String("Acme Analytics, Inc."),
AccessType: anthropic.UserProfileAccessTypePassthrough,
ExternalUserDetails: anthropic.UserProfileExternalUserDetailsParams{
ReferenceID: anthropic.String("cust-8f2a1c"),
Country: anthropic.String("US"),
},
})
if err != nil {
log.Fatal(err)
}
fmt.Println(profile.ID)
```
```java Java
import com.anthropic.models.userprofiles.UserProfileAccessType;
import com.anthropic.models.userprofiles.UserProfileCreateParams;
import com.anthropic.models.userprofiles.UserProfileExternalUserDetailsParams;
void main() {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
var params = UserProfileCreateParams.builder()
.name("Acme Analytics, Inc.")
.accessType(UserProfileAccessType.PASSTHROUGH)
.externalUserDetails(UserProfileExternalUserDetailsParams.builder()
.referenceId("cust-8f2a1c")
.country("US")
.build())
.build();
var profile = client.userProfiles().create(params);
IO.println(profile.id());
// ...
}
```
```php PHP
$client = new Client();
$profile = $client->userProfiles->create(
name: 'Acme Analytics, Inc.',
accessType: 'passthrough',
externalUserDetails: ['referenceID' => 'cust-8f2a1c', 'country' => 'US'],
);
echo $profile->id, PHP_EOL;
```
```ruby Ruby
client = Anthropic::Client.new
profile = client.user_profiles.create(
name: "Acme Analytics, Inc.",
access_type: :passthrough,
external_user_details: { reference_id: "cust-8f2a1c", country: "US" }
)
puts profile.id
```
</CodeGroup>
You get the new user profile back, abridged here:
```json
{
"type": "user_profile",
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"name": "Acme Analytics, Inc.",
"access_type": "passthrough",
"external_user_details": {
"reference_id": "cust-8f2a1c",
"onboarded_at": null,
"account_status": null,
"entity_type": null,
"country": "US",
"name_hash": null,
"email_hash": null
},
"metadata": {},
"programs": {
"cyber": null
},
"enforcement_status": "unrestricted",
"enforcement_actions": [],
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z"
}
```
Store the `id` on your customer record and have your service instances read it from there, rather than each creating its own user profile. It’s also the ID you use to retrieve, update, or delete the user profile later.
Anthropic sets the following fields itself, so leave them out of your request:
* `programs`: The end customer’s status in each Anthropic program, such as the Cyber Verification Program. Attribution doesn’t use this field. For what its values mean, see [which programs apply to a user profile](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#after-the-end-customer-links-the-profile).
* `enforcement_status` and `enforcement_actions`: Restrictions or bans that Anthropic has open on the end customer. See [Check whether Anthropic has restricted or banned a user profile](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#check-whether-anthropic-has-restricted-or-banned-a-profile).
### Register an existing customer base
An organization can hold any number of user profiles, but creating them is rate limited. Before you register an existing customer base in bulk, contact your Anthropic account team.
## Attribute each request
Send the user profile’s `uprof_` ID, not your own ID for the end customer, in the `anthropic-user-profile-id` header on every request you make for them. The SDK and the [`ant` CLI](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart) add the header for you when you set `user_profile_id` (java: `.userProfileId()`; php: `userProfileID`; csharp, go: `UserProfileID`; cli: `--user-profile-id`).
<CodeGroup>
```bash cURL
curl https://api.anthropic.com/v1/messages \
-H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
-H "anthropic-version: 2026-10-21" \
-H "anthropic-user-profile-id: $PROFILE_ID" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, Claude"}
]
}'
```
```bash CLI
ant messages create \
--model claude-opus-5-5 \
--max-tokens 1024 \
--message '{role: user, content: "Hello, Claude"}' \
--user-profile-id "$PROFILE_ID"
```
```python Python
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-opus-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Claude"}],
user_profile_id=profile_id,
)
print(message)
```
```typescript TypeScript
const client = new Anthropic();
const message = await client.messages.create({
model: "claude-opus-5-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello, Claude" }],
user_profile_id: profileId
});
console.log(message);
```
```csharp C#
AnthropicClient client = new();
var parameters = new MessageCreateParams
{
Model = Model.ClaudeOpus5_5,
MaxTokens = 1024,
Messages = [new UserMessageParam { Content = "Hello, Claude" }],
UserProfileID = profileId
};
Cut at 300 lines. The page has the rest.
manage-claude/user-profiles/how-user-profiles-work New page · 56 lines, new page
## How it works ### What a user profile contains and how Anthropic uses it ## When to use it
A whole new page. There's nothing to diff it against, so here is what it says.
---
title: How user profiles work
url: https://platform.claude.com/docs/en/manage-claude/user-profiles/how-user-profiles-work
description: A user profile tells Anthropic which of your customers a request to Claude is for. Learn why that matters and when you need one.
---
A user profile tells Anthropic which of your customers a request to Claude is for, whether that’s a person or a company. It matters when your customers (“end customers”) use Claude through your product or platform, because their requests arrive under your organization. With a user profile for each end customer, a safety restriction or ban can apply to that one end customer instead of your whole organization.
## How it works
Suppose your platform serves two companies through your organization. You create a user profile for each and send that user profile’s ID on the company’s requests. If one company’s requests lead to a safety enforcement action, such as a [restriction or a ban](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#check-whether-anthropic-has-restricted-or-banned-a-profile), it can apply to that company’s user profile. When it does, the other company’s requests are unaffected.
Without user profiles, all of those requests arrive under your organization, and at most a free-text [`metadata.user_id`](https://platform.claude.com/docs/en/api/messages/create) tells them apart. Anthropic runs automated safety classifiers over API traffic, so one end customer can then trigger an enforcement action that applies to your whole organization.
You create a user profile once for each end customer, and Anthropic gives it an opaque ID that holds none of the details you provide. You send that ID on every request you make for that end customer. Any details you add, such as a name or metadata, are optional. To start, see [Create user profiles and attribute requests](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests).
On their own, user profiles don’t change billing or pricing. If you use [Linked billing](https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing), a user profile is also how you identify the customer to bill.
### What a user profile contains and how Anthropic uses it
A user profile contains only what you send about the end customer, plus any [program status](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#after-the-end-customer-links-the-profile) or enforcement status that Anthropic sets. It doesn’t contain conversation content. Anthropic uses the details you send to attribute requests, to monitor for abuse, for enforcement of the [Usage Policy](https://www.anthropic.com/legal/aup), and to enable application and access to trusted access programs. Anthropic doesn’t verify the details.
Anthropic processes user profiles in accordance with the [Privacy Policy](https://www.anthropic.com/legal/privacy). The [feature eligibility tables](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility) cover how long Anthropic keeps user profile data.
How much you send is up to you. For example, this [`POST /v1/user_profiles`](https://platform.claude.com/docs/en/api/user_profiles/create) request sends only the end customer’s name:
```json
{
"name": "Ana García"
}
```
Every field is optional, so you can send an empty JSON object, `{}`, instead. Without an `access_type`, the request makes an [`application` user profile](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile) for an end customer who uses your product. A fuller request adds other details:
```json
{
"name": "Ana García",
"external_user_details": {
"entity_type": "individual",
"country": "ES",
"reference_id": "user-4821",
"onboarded_at": "2026-03-15T10:00:00Z",
"account_status": "active",
"email_hash": "8fac453d04351152e705c17d1ce2a0f079400e2a0edf662e97d803427fd608c9"
},
"metadata": {
"plan": "pro"
}
}
```
Each of these returns the user profile with its `uprof_` ID, as in the [example response](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#send-the-create-request). For the rules on these fields, see [What to tell Anthropic about an end customer](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#what-to-tell-anthropic-about-an-end-customer).
## When to use it
Use user profiles if you operate a platform, operate a gateway, or resell API access. The requests you send for your end customers arrive under your organization. Your own usage doesn’t need a user profile.
manage-claude/user-profiles/manage-profiles New page · 338 lines, new page
## Before you begin ## Check whether Anthropic has restricted or banned a user profile ### Find user profiles that have an open action ### Read the enforcement fields ## Update a user profile ## Delete a user profile ## Rules and special cases ### If a field has a value that you don’t recognize ### If the enforcement fields are missing ### If you use Claude Platform on AWS
A whole new page. There's nothing to diff it against, so here is what it says.
---
title: Manage user profiles
url: https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles
description: Check whether Anthropic has restricted or banned one of your end customers, update a user profile when the end customer's details change, and delete a user profile.
---
After you [create a user profile for each end customer](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#create-a-profile-for-each-end-customer), you can check whether Anthropic has restricted or banned any of them. You can also update a user profile when an end customer’s details change. You can delete the user profile when they leave or ask you to erase their data.
## Before you begin
You need two things:
* **The user profile’s ID:** The `uprof_` ID you stored when you created the user profile. The examples on this page read it from a variable.
* **Credentials for the organization that created the user profile:** Use the ones you created the user profile with (see [Create user profiles and attribute requests](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#before-you-begin)).
## Check whether Anthropic has restricted or banned a user profile
Anthropic can restrict or ban one of your end customers. An enforcement action (“action”) is a restriction or a ban on that end customer’s user profile. While an action is open, Anthropic refuses some or all inference requests that carry the user profile’s ID. Your other end customers’ requests aren’t affected.
* **A restriction** limits how Anthropic serves the end customer until it ends, and some of their requests might still succeed.
* **A ban** means that Anthropic has stopped serving the end customer where the ban applies and doesn’t plan to serve them there again. It has no end date, and they can’t clear it.
### Find user profiles that have an open action
There are two ways to check:
* **One user profile:** Retrieve it with [`GET /v1/user_profiles/{id}`](https://platform.claude.com/docs/en/api/user_profiles/retrieve).
* **Every user profile that has an open action:** [List your user profiles](https://platform.claude.com/docs/en/api/user_profiles/list) with `enforcement_status[]=restricted` and `enforcement_status[]=banned`.
A list response might hold no user profiles or fewer than `limit` before the list ends, so keep requesting pages until `next_page` is `null`.
To find out when an action opens or ends, list your user profiles at regular intervals. Compare `enforcement_status` and `enforcement_actions` with what you saw last time. If a user profile drops out of the list, it either has no open action or was deleted. Don’t rely on `updated_at` to spot a change, because changes to these fields don’t reliably update it.
Anthropic doesn’t send webhook events for these changes.
### Read the enforcement fields
Each user profile in a create, retrieve, update, or list response carries two fields, `enforcement_status` and `enforcement_actions`. If a response has neither, see [If the enforcement fields are missing](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-the-enforcement-fields-are-missing). On Claude Platform on AWS, the fields don’t report actions (see [If you use Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws)).
Anthropic sets both fields, so if a create or update request includes either one, the API returns a `400`.
The following example shows these two fields on a retrieved user profile and leaves out most of its other fields:
```json
{
"type": "user_profile",
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"enforcement_status": "restricted",
"enforcement_actions": [
{
"type": "restriction",
"id": "enac_011CZkZEq4TnWb7xLfRgPm2v",
"reason": "fraud_or_abuse",
"action": null,
"opened_at": "2026-10-02T19:30:00Z",
"expires_at": null
}
]
}
```
`enforcement_status` summarizes the open actions in one value:
* `unrestricted`: No action is open.
* `restricted`: At least one action is open and none of them is a ban.
* `banned`: A ban is open.
`enforcement_status` is separate from `external_user_details.account_status`, which records your own decision about the account.
`enforcement_actions` lists the open actions and is empty when there are none. An action drops off the list once it ends, so if you need a history, store the actions you read. Each action has these fields:
* `type`: `restriction` or `ban`.
* `id`: The action’s ID, which starts with `enac_`.
* `reason`: Why Anthropic opened the action. It’s one of `unsupported_region`, `fraud_or_abuse`, `high_harm`, `usage_policy_violation`, `account_compromise`, or `unspecified`.
* `action`: What the end customer can do to clear the action. It’s always `null`.
* `opened_at`: When Anthropic opened the action.
* `expires_at`: When the action ends by itself. It’s `null` when the action has no end date.
Anthropic can add values to these fields, so make sure your code can handle [a value it doesn’t recognize](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-a-field-has-a-value-that-you-dont-recognize).
## Update a user profile
Update a user profile when the end customer’s details or account status change, for example when a company rebrands or you suspend an account. [`POST /v1/user_profiles/{id}`](https://platform.claude.com/docs/en/api/user_profiles/update) changes only the fields you send:
* `name` and [`access_type`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile) replace the stored value.
* Each field you send in [`external_user_details`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#what-to-tell-anthropic-about-an-end-customer) replaces the stored value. You can’t clear a value, because the API rejects `null` with a `400`.
* `metadata` merges key by key. A key you send overwrites its stored value, an empty string deletes the key, and any key you leave out stays as it is.
The cURL samples on this page send an access token, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token, from `ANTHROPIC_AUTH_TOKEN`. Because that variable takes precedence over federation environment variables and federation profiles, set it only in the shell where you run the samples.
The following example marks the account as suspended and deletes a `trial_cohort` metadata key:
<CodeGroup>
```bash cURL
curl "https://api.anthropic.com/v1/user_profiles/$PROFILE_ID" \
-H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
-H "anthropic-version: 2026-10-21" \
-H "content-type: application/json" \
-d '{
"external_user_details": {"account_status": "suspended"},
"metadata": {"trial_cohort": ""}
}'
```
```bash CLI
ant user-profiles update \
--user-profile-id "$PROFILE_ID" \
--external-user-details '{account_status: suspended}' \
--metadata '{trial_cohort: ""}'
```
```python Python
client = anthropic.Anthropic()
profile = client.user_profiles.update(
profile_id,
external_user_details={"account_status": "suspended"},
metadata={"trial_cohort": ""},
)
print(profile)
```
```typescript TypeScript
const client = new Anthropic();
const profile = await client.userProfiles.update(profileId, {
external_user_details: { account_status: "suspended" },
metadata: { trial_cohort: "" }
});
console.log(profile);
```
```csharp C#
AnthropicClient client = new();
var profile = await client.UserProfiles.Update(profileId, new()
{
ExternalUserDetails = new()
{
AccountStatus = UserProfileExternalUserAccountStatus.Suspended
},
Metadata = new Dictionary<string, string> { ["trial_cohort"] = "" }
});
Console.WriteLine(profile);
```
```go Go
client := anthropic.NewClient()
profile, err := client.UserProfiles.Update(
context.Background(),
profileID,
anthropic.UserProfileUpdateParams{
ExternalUserDetails: anthropic.UserProfileExternalUserDetailsParams{
AccountStatus: anthropic.UserProfileExternalUserAccountStatusSuspended,
},
Metadata: map[string]string{"trial_cohort": ""},
},
)
if err != nil {
log.Fatal(err)
}
fmt.Println(profile)
```
```java Java
import com.anthropic.core.JsonValue;
import com.anthropic.models.userprofiles.UserProfileExternalUserAccountStatus;
import com.anthropic.models.userprofiles.UserProfileExternalUserDetailsParams;
import com.anthropic.models.userprofiles.UserProfileUpdateParams;
void main() {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
var params = UserProfileUpdateParams.builder()
.userProfileId(profileId)
.externalUserDetails(UserProfileExternalUserDetailsParams.builder()
.accountStatus(UserProfileExternalUserAccountStatus.SUSPENDED)
.build())
.metadata(UserProfileUpdateParams.Metadata.builder()
.putAdditionalProperty("trial_cohort", JsonValue.from(""))
.build())
.build();
var profile = client.userProfiles().update(params);
IO.println(profile);
}
```
```php PHP
$client = new Client();
$profile = $client->userProfiles->update(
$profileId,
externalUserDetails: ['accountStatus' => 'suspended'],
metadata: ['trial_cohort' => ''],
);
echo json_encode($profile, JSON_PRETTY_PRINT), PHP_EOL;
```
```ruby Ruby
client = Anthropic::Client.new
profile = client.user_profiles.update(
profile_id,
external_user_details: { account_status: :suspended },
metadata: { trial_cohort: "" }
)
puts profile
```
</CodeGroup>
## Delete a user profile
[`DELETE /v1/user_profiles/{id}`](https://platform.claude.com/docs/en/api/user_profiles/delete) deletes a user profile and the details you supplied for it, including `name`, `external_user_details`, and `metadata`. It doesn’t remove the trust and safety records that Anthropic keeps about that user profile ID. You can delete user profiles on the Claude API and Claude Platform on AWS.
Delete a user profile when an end customer closes their account or asks you to erase their data:
* **The customer leaves:** Stop sending the user profile’s ID on their requests, and then delete the user profile.
* **The customer stays with you after an erasure request:** Create a new user profile, switch their requests to its ID, and then delete the old user profile.
If the customer stays and a workspace has the old user profile attached, that workspace rejects requests that carry the new ID. Before you switch, see [If a workspace has a user profile attached](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-workspace-has-a-profile-attached).
<Warning>
You can’t undo a delete.
</Warning>
The following example deletes a user profile:
<CodeGroup>
```bash cURL
curl -X DELETE "https://api.anthropic.com/v1/user_profiles/$PROFILE_ID" \
-H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
-H "anthropic-version: 2026-10-21"
```
```bash CLI
ant user-profiles delete --user-profile-id "$PROFILE_ID"
```
```python Python
client = anthropic.Anthropic()
deleted = client.user_profiles.delete(profile_id)
print(deleted.id)
```
```typescript TypeScript
const client = new Anthropic();
const deleted = await client.userProfiles.delete(profileId);
console.log(deleted.id);
```
```csharp C#
AnthropicClient client = new();
var deleted = await client.UserProfiles.Delete(profileId);
Console.WriteLine(deleted.ID);
```
```go Go
client := anthropic.NewClient()
deleted, err := client.UserProfiles.Delete(
context.Background(),
profileID,
anthropic.UserProfileDeleteParams{},
)
if err != nil {
log.Fatal(err)
}
fmt.Println(deleted.ID)
```
```java Java
void main() {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
var deleted = client.userProfiles().delete(profileId);
IO.println(deleted.id());
}
```
```php PHP
$client = new Client();
$deleted = $client->userProfiles->delete($profileId);
Cut at 300 lines. The page has the rest.
manage-claude/user-profiles/platforms New page · 99 lines, new page
## Which organization holds your user profiles ## If you use Amazon Bedrock ### Requests that can carry a user profile ID ### Send the ID in the request body ## If you use Claude Platform on AWS ## If you use Claude Models on Google Cloud (Anthropic managed) ## If you use Claude Models on Google Cloud (Google managed) ## If you use Microsoft Foundry ## Rules and special cases ### How each platform checks the ID
A whole new page. There's nothing to diff it against, so here is what it says.
---
title: Use user profiles on a cloud platform
url: https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms
description: Where to create user profiles, what to link first, and how to send a user profile ID on each cloud platform that offers Claude.
---
If you use Claude through a cloud platform, setting up user profiles depends on that platform. The platform determines which organization holds your user profiles, what you link to that organization first, and where each request carries a user profile’s ID. For what user profiles do and whether you need them, see [How user profiles work](https://platform.claude.com/docs/en/manage-claude/user-profiles/how-user-profiles-work). For who gets a user profile and how to create one, see [Create user profiles and attribute requests](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests).
## Which organization holds your user profiles
On Amazon Bedrock, Claude Models on Google Cloud (Google managed), and Microsoft Foundry, you create user profiles in an Anthropic organization on another platform. This is usually the Claude API. That organization’s credentials are only for managing user profiles, and your requests to Claude still use your cloud platform’s credentials. Each platform’s section says which organizations work.
On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, either [access type](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile) works.
## If you use Amazon Bedrock
* **Where you create user profiles:** In an organization on the Claude API. An organization on Claude Platform on AWS works too, but its user profiles [don’t report restrictions or bans](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#claude-platform-on-aws).
* **What you link first:** Each AWS account that sends requests with user profile IDs to Amazon Bedrock. Link each one to the organization that creates your user profiles. For the steps, see [Link an AWS account or Google Cloud project](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#link-an-aws-account-or-google-cloud-project). You don’t need to link an account you use only for your own usage.
* **Where the ID goes:** In the `user_profile_id` field at the top level of the request body, not in the `anthropic-user-profile-id` header. Send it only on the [requests that can carry a user profile ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models). See [How each platform checks the ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#how-each-platform-checks-the-id).
### Requests that can carry a user profile ID
User profiles work on [Claude in Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) and with `InvokeModel` on [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), including streaming with `InvokeModelWithResponseStream`. Send a user profile ID only on requests for these models, though not every one of them is on both endpoints:
* Claude 4.7 and later models
* Claude Sonnet 4.6
* Claude Haiku 4.5
Leave the ID out of requests for any other model, because a request that carries it can fail with a `400`. Leave it out of Amazon Bedrock batch inference jobs as well.
Requests without the ID aren’t attributed to an end customer.
User profiles are not available with the `Converse` API. Use `InvokeModel` or the `bedrock-mantle` endpoint instead.
### Send the ID in the request body
Here’s where the ID goes in a `bedrock-mantle` body. For a `bedrock-runtime` body, see the last two items in the following list.
```json
{
"model": "anthropic.claude-opus-5-5",
"max_tokens": 1024,
"user_profile_id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"messages": [{ "role": "user", "content": "Hello, Claude" }]
}
```
How the ID gets into the body depends on how you call Amazon Bedrock:
* **The standard SDK client:** Don’t send a user profile ID to Amazon Bedrock through the client you use for the Claude API. That client puts the ID in the header, whatever base URL you give it.
* **The SDK client for `bedrock-mantle`:** Use the latest version of [the `bedrock-mantle` client](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#install-an-sdk), which you create with `AnthropicBedrockMantle` (csharp: `AnthropicBedrockMantleClient`; go: `bedrock.NewMantleClient()`; java: `BedrockMantleBackend`; php: `MantleClient`; ruby: `Anthropic::BedrockMantleClient`). Pass the ID in the SDK’s [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request), and the client puts it in the body.
* **The SDK client for `bedrock-runtime`:** If you call `InvokeModel` through `AnthropicBedrock` (csharp: `AnthropicBedrockClient`; go: `bedrock.WithLoadDefaultConfig()`; java: `BedrockBackend`; php: `Bedrock\Client`; ruby: `Anthropic::BedrockClient`), the [latest version of the SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview#latest-versions) puts the [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) in the request body for you. An earlier version doesn’t, so unless you add the ID yourself, the request isn’t attributed. In TypeScript and C#, the version that counts is the Bedrock package’s, `@anthropic-ai/bedrock-sdk` or `Anthropic.Bedrock`.
On the API version that the latest SDK sends, `InvokeModel` requests can fail with a `400` for some models. These are the models numbered 4.6 or lower in the model table of [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy). For these models, stay on the previous major version of the SDK. To install it, use the commands in [Install an SDK for accessing Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#install-an-sdk-for-accessing-bedrock).
With an earlier version, add `user_profile_id` to the body of requests for [models that accept it](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models), using `extra_body` (ruby: `request_options: {extra_body: {...}}`; typescript: `body`; php: `extraBodyParams`; java: `.putAdditionalBodyProperty()`; go: `option.WithJSONSet()`; csharp: `MessageCreateParams.FromRawUnchecked()`). Leave the rest of the body as it is, because the SDK builds the URL from the body’s `model` and, if you stream, `stream: true`. In the TypeScript and C# SDKs, that option replaces the whole body, so include every field of the request along with `user_profile_id`.
* **`InvokeModel` called directly:** Put the model ID in the request’s URL (`modelId` in an AWS SDK) rather than the body. The body also needs an `anthropic_version` field, such as `"anthropic_version": "bedrock-2023-05-31"`.
If you start from an example in [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests), change its model to one that [accepts a user profile ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models).
## If you use Claude Platform on AWS
* **Where you create user profiles:** In your organization on [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), using that platform’s base URL and authentication. The calling principal needs the [user profile IAM actions](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#user-profiles).
* **What you link first:** Nothing, if you create the user profiles in this organization. If another organization created them, see [If a request returns a `400`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-request-returns-a-400).
* **Where the ID goes:** In the `anthropic-user-profile-id` header, which the SDK’s [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) sets.
* **Restrictions and bans:** Not reported. For what the enforcement fields show instead, see [Manage user profiles on Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws).
## If you use Claude Models on Google Cloud (Anthropic managed)
* **Where you create user profiles:** In your organization on [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), where you can create, retrieve, list, and update them. Authenticate with Google Cloud credentials, not an API key, and use the latest version of [the SDK client for Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#install-an-sdk) or the [organization-level base URL](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#making-requests).
* **What you link first:** Nothing, if you create the user profiles in this organization. If another organization created them, see [If a request returns a `400`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-request-returns-a-400).
* **Where the ID goes:** In the `anthropic-user-profile-id` header, which the SDK’s [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) sets.
## If you use Claude Models on Google Cloud (Google managed)
* **Where you create user profiles:** In an organization on the Claude API. An organization on Claude Platform on AWS works too, but its user profiles [don’t report restrictions or bans](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#claude-platform-on-aws).
* **What you link first:** Each Google Cloud project that sends requests with user profile IDs to [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed). Link each one to the organization that creates your user profiles. For the steps, see [Link an AWS account or Google Cloud project](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#link-an-aws-account-or-google-cloud-project). You don’t need to link a project you use only for your own usage.
* **Where the ID goes:** In the `anthropic-user-profile-id` header, not in the request body. See [How each platform checks the ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#how-each-platform-checks-the-id).
With an SDK, use the latest version of [the SDK client for Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed#install-an-sdk-for-accessing-vertex-ai), which you create with `AnthropicVertex` (csharp: `AnthropicVertexClient`; go: `vertex.WithGoogleAuth()`; java: `VertexBackend`; php: `Anthropic\Vertex\Client`; ruby: `Anthropic::VertexClient`). Pass the ID in its [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request), and the client sends the header.
## If you use Microsoft Foundry
The following details are for deployments of [Claude in Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) [hosted on Anthropic](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#hosting-options).
* **Where you create user profiles:** In an organization on the Claude API. The `/v1/user_profiles` endpoints are not available on Microsoft Foundry.
* **What you link first:** The organization that holds your Foundry resource. Anthropic links it to the organization that creates your user profiles. To request the link, contact your account team.
* **Where the ID goes:** In the `anthropic-user-profile-id` header once the link exists. Until then, every request that carries a user profile ID returns a `400`.
## Rules and special cases
### How each platform checks the ID
Some platforms check the ID on every request. For which ones, and what they return, see [If a request returns a `400`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-request-returns-a-400).
Claude Models on Google Cloud (Google managed) rejects a malformed ID with a `400`. So does Amazon Bedrock on the [requests that can carry a user profile ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models). Both accept any well-formed ID. On these two platforms, a successful response doesn’t confirm that the ID matches one of your user profiles.
manage-claude/wif-reference Changed · +4 / -4 lines
manage-claude/workspaces Changed · +41 / -39 lines
managed-agents/multiagent-orchestration Changed · +5 / -0 lines
managed-agents/quickstart Changed · +15 / -5 lines
models/fable-5-2/migration-guide Changed · +12 / -9 lines
release-notes/overview Changed · +8 / -4 lines
### November 13, 2026