---
title: 使用者設定檔的運作方式
url: https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/how-user-profiles-work
description: 使用者設定檔會告訴 Anthropic 向 Claude 發出的請求是為您的哪位客戶而發。了解這為何重要，以及您何時需要使用者設定檔。
---

使用者設定檔會告訴 Anthropic 向 Claude 發出的請求是為您的哪位客戶而發，無論該客戶是個人還是公司。當您的客戶（「終端客戶」）透過您的產品或平台使用 Claude 時，這一點很重要，因為他們的請求會以您的組織名義送達。為每位終端客戶建立使用者設定檔後，安全限制或封禁就可以只套用於該位終端客戶，而不是您的整個組織。

## 運作方式

假設您的平台透過您的組織服務兩家公司。您為每家公司建立一個使用者設定檔，並在該公司的請求上傳送該使用者設定檔的 ID。如果其中一家公司的請求導致安全強制措施，例如[限制或封禁](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/manage-profiles#check-whether-anthropic-has-restricted-or-banned-a-profile)，該措施可以只套用於該公司的使用者設定檔。發生這種情況時，另一家公司的請求不會受到影響。

如果沒有使用者設定檔，所有這些請求都會以您的組織名義送達，最多只能透過自由文字的 [`metadata.user_id`](https://platform.claude.com/docs/zh-TW/api/messages/create) 來區分它們。Anthropic 會對 API 流量執行自動化的「safety classifiers」（安全分類器），因此單一終端客戶就可能觸發套用於您整個組織的強制措施。

您只需為每位終端客戶建立一次使用者設定檔，Anthropic 會為該使用者設定檔指派一個不透明的 ID，其中不包含您提供的任何詳細資訊。您在為該終端客戶發出的每個請求上傳送該 ID。您新增的任何詳細資訊（例如名稱或中繼資料）都是選填的。若要開始使用，請參閱[建立使用者設定檔並歸屬請求](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/attribute-requests)。

就其本身而言，使用者設定檔不會改變計費或定價。如果您使用 [Linked billing](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing)，使用者設定檔也是您用來識別要計費之客戶的方式。

### 使用者設定檔包含的內容以及 Anthropic 如何使用它

使用者設定檔只包含您傳送的終端客戶相關資訊，以及 Anthropic 設定的任何[計畫狀態](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles-verification-portal#after-the-end-customer-links-the-profile)或強制措施狀態。它不包含對話內容。Anthropic 會使用您傳送的詳細資訊來歸屬請求、監控濫用行為、執行[使用政策](https://www.anthropic.com/legal/aup)，以及啟用受信任存取計畫的申請與存取。Anthropic 不會驗證這些詳細資訊。

Anthropic 會依照[隱私權政策](https://www.anthropic.com/legal/privacy)處理使用者設定檔。[功能資格表](https://platform.claude.com/docs/zh-TW/manage-claude/api-and-data-retention#feature-eligibility)說明了 Anthropic 保留使用者設定檔資料的時間長度。

要傳送多少資訊由您決定。例如，這個 [`POST /v1/user_profiles`](https://platform.claude.com/docs/zh-TW/api/user_profiles/create) 請求只會傳送終端客戶的名稱：

```json
{
  "name": "Ana García"
}
```

每個欄位都是選填的，因此您也可以改為傳送空的 JSON 物件 `{}`。若未指定 `access_type`，該請求會為使用您產品的終端客戶建立一個 [`application` 使用者設定檔](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile)。較完整的請求則會新增其他詳細資訊：

```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"
  }
}
```

這些請求都會傳回帶有 `uprof_` ID 的使用者設定檔，如[範例回應](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/attribute-requests#send-the-create-request)所示。關於這些欄位的規則，請參閱[要告訴 Anthropic 哪些終端客戶資訊](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles/attribute-requests#what-to-tell-anthropic-about-an-end-customer)。

## 何時使用

如果您經營平台或閘道，或轉售 API 存取權，請使用使用者設定檔。您為終端客戶發送的請求都會以您的組織名義送達。您自己的用量不需要使用者設定檔。
