---
title: 사용자 프로필 관리
url: https://platform.claude.com/docs/ko/manage-claude/user-profiles/manage-profiles
description: Anthropic이 귀하의 최종 고객 중 한 명을 제한하거나 차단했는지 확인하고, 최종 고객의 세부 정보가 변경되면 사용자 프로필을 업데이트하며, 사용자 프로필을 삭제합니다.
---

[각 최종 고객에 대한 사용자 프로필을 생성](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#create-a-profile-for-each-end-customer)한 후에는 Anthropic이 그중 누군가를 제한하거나 차단했는지 확인할 수 있습니다. 또한 최종 고객의 세부 정보가 변경되면 사용자 프로필을 업데이트할 수 있습니다. 최종 고객이 떠나거나 데이터 삭제를 요청하면 사용자 프로필을 삭제할 수 있습니다.

## 시작하기 전에

다음 두 가지가 필요합니다:

* **사용자 프로필의 ID:** 사용자 프로필을 생성할 때 저장한 `uprof_` ID입니다. 이 페이지의 예제는 변수에서 이 ID를 읽습니다.
* **사용자 프로필을 생성한 조직의 자격 증명:** 사용자 프로필을 생성할 때 사용한 자격 증명을 사용하세요([사용자 프로필 생성 및 요청 귀속](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#before-you-begin) 참조).

## Anthropic이 사용자 프로필을 제한하거나 차단했는지 확인하기

Anthropic은 귀하의 최종 고객 중 한 명을 제한하거나 차단할 수 있습니다. “Enforcement action”(시행 조치)("조치")은 해당 최종 고객의 사용자 프로필에 대한 제한 또는 차단입니다. 조치가 열려 있는 동안 Anthropic은 해당 사용자 프로필의 ID를 포함하는 추론 요청의 일부 또는 전부를 거부합니다. 귀하의 다른 최종 고객의 요청은 영향을 받지 않습니다.

* **제한**은 종료될 때까지 Anthropic이 최종 고객에게 서비스를 제공하는 방식을 제한하며, 일부 요청은 여전히 성공할 수 있습니다.
* **차단**은 Anthropic이 차단이 적용되는 곳에서 최종 고객에 대한 서비스 제공을 중단했으며 그곳에서 다시 서비스를 제공할 계획이 없음을 의미합니다. 종료일이 없으며, 최종 고객이 이를 해제할 수 없습니다.

### 열려 있는 조치가 있는 사용자 프로필 찾기

확인하는 방법은 두 가지입니다:

* **사용자 프로필 하나:** [`GET /v1/user_profiles/{id}`](https://platform.claude.com/docs/ko/api/user_profiles/retrieve)로 조회하세요.
* **열려 있는 조치가 있는 모든 사용자 프로필:** `enforcement_status[]=restricted` 및 `enforcement_status[]=banned`를 사용하여 [사용자 프로필 목록을 조회](https://platform.claude.com/docs/ko/api/user_profiles/list)하세요.

목록이 끝나기 전에도 목록 응답에 사용자 프로필이 하나도 없거나 `limit`보다 적은 수의 사용자 프로필이 있을 수 있으므로, `next_page`가 `null`이 될 때까지 페이지를 계속 요청하세요.

조치가 열리거나 종료되는 시점을 파악하려면 정기적으로 사용자 프로필 목록을 조회하세요. `enforcement_status`와 `enforcement_actions`를 마지막으로 확인한 값과 비교하세요. 사용자 프로필이 목록에서 빠지면 열려 있는 조치가 없거나 삭제된 것입니다. 이 필드들이 변경되어도 `updated_at`이 확실하게 갱신되지는 않으므로, 변경을 감지하는 데 이 값에 의존하지 마세요.

Anthropic은 이러한 변경에 대한 웹훅 이벤트를 전송하지 않습니다.

### 시행 조치 필드 읽기

생성, 조회, 업데이트 또는 목록 응답의 각 사용자 프로필에는 `enforcement_status`와 `enforcement_actions`라는 두 필드가 포함됩니다. 응답에 두 필드가 모두 없으면 [시행 조치 필드가 누락된 경우](https://platform.claude.com/docs/ko/manage-claude/user-profiles/manage-profiles#if-the-enforcement-fields-are-missing)를 참조하세요. Claude Platform on AWS에서는 이 필드들이 조치를 보고하지 않습니다([Claude Platform on AWS를 사용하는 경우](https://platform.claude.com/docs/ko/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws) 참조).

두 필드는 Anthropic이 설정하므로, 생성 또는 업데이트 요청에 둘 중 하나라도 포함되면 API는 `400`을 반환합니다.

다음 예제는 조회된 사용자 프로필의 이 두 필드를 보여 주며, 다른 필드는 대부분 생략되어 있습니다:

```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`는 열려 있는 조치를 하나의 값으로 요약합니다:

* `unrestricted`: 열려 있는 조치가 없습니다.
* `restricted`: 하나 이상의 조치가 열려 있으며 그중 차단은 없습니다.
* `banned`: 차단이 열려 있습니다.

`enforcement_status`는 계정에 대한 귀하 자신의 결정을 기록하는 `external_user_details.account_status`와는 별개입니다.

`enforcement_actions`는 열려 있는 조치를 나열하며, 조치가 없으면 비어 있습니다. 조치는 종료되면 목록에서 제거되므로, 이력이 필요하다면 읽은 조치를 저장하세요. 각 조치에는 다음 필드가 있습니다:

* `type`: `restriction` 또는 `ban`.
* `id`: 조치의 ID로, `enac_`로 시작합니다.
* `reason`: Anthropic이 조치를 연 이유입니다. `unsupported_region`, `fraud_or_abuse`, `high_harm`, `usage_policy_violation`, `account_compromise`, `unspecified` 중 하나입니다.
* `action`: 최종 고객이 조치를 해제하기 위해 할 수 있는 일입니다. 항상 `null`입니다.
* `opened_at`: Anthropic이 조치를 연 시점입니다.
* `expires_at`: 조치가 자동으로 종료되는 시점입니다. 조치에 종료일이 없으면 `null`입니다.

Anthropic은 이 필드들에 값을 추가할 수 있으므로, 코드가 [인식하지 못하는 값](https://platform.claude.com/docs/ko/manage-claude/user-profiles/manage-profiles#if-a-field-has-a-value-that-you-dont-recognize)을 처리할 수 있도록 하세요.

## 사용자 프로필 업데이트하기

최종 고객의 세부 정보나 계정 상태가 변경되면 사용자 프로필을 업데이트하세요. 예를 들어 회사가 브랜드를 변경하거나 귀하가 계정을 정지하는 경우입니다. [`POST /v1/user_profiles/{id}`](https://platform.claude.com/docs/ko/api/user_profiles/update)는 보낸 필드만 변경합니다:

* `name`과 [`access_type`](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile)은 저장된 값을 대체합니다.
* [`external_user_details`](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#what-to-tell-anthropic-about-an-end-customer)에 보내는 각 필드는 저장된 값을 대체합니다. API가 `null`을 `400`으로 거부하므로 값을 지울 수는 없습니다.
* `metadata`는 키 단위로 병합됩니다. 보낸 키는 저장된 값을 덮어쓰고, 빈 문자열은 키를 삭제하며, 생략한 키는 그대로 유지됩니다.

이 페이지의 cURL 예제는 [workload identity federation](https://platform.claude.com/docs/ko/manage-claude/workload-identity-federation#authenticate-from-your-workload)(워크로드 ID 페더레이션) 토큰과 같은 액세스 토큰을 `ANTHROPIC_AUTH_TOKEN`에서 보냅니다. 이 변수는 페더레이션 환경 변수 및 페더레이션 프로필보다 우선하므로, 예제를 실행하는 셸에서만 설정하세요.

다음 예제는 계정을 정지됨으로 표시하고 `trial_cohort` 메타데이터 키를 삭제합니다:

<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 /v1/user_profiles/{id}`](https://platform.claude.com/docs/ko/api/user_profiles/delete)는 사용자 프로필과 해당 사용자 프로필에 대해 제공한 세부 정보(`name`, `external_user_details`, `metadata` 포함)를 삭제합니다. 단, Anthropic이 해당 사용자 프로필 ID에 대해 보관하는 신뢰 및 안전 기록은 삭제되지 않습니다. 사용자 프로필은 Claude API와 Claude Platform on AWS에서 삭제할 수 있습니다.

최종 고객이 계정을 해지하거나 데이터 삭제를 요청하면 사용자 프로필을 삭제하세요:

* **고객이 떠나는 경우:** 해당 고객의 요청에 사용자 프로필 ID를 보내는 것을 중단한 다음 사용자 프로필을 삭제하세요.
* **삭제 요청 후에도 고객이 계속 서비스를 이용하는 경우:** 새 사용자 프로필을 생성하고, 고객의 요청을 새 사용자 프로필의 ID로 전환한 다음, 이전 사용자 프로필을 삭제하세요.

고객이 계속 이용하고 워크스페이스에 이전 사용자 프로필이 연결되어 있다면, 해당 워크스페이스는 새 ID를 포함한 요청을 거부합니다. 전환하기 전에 [워크스페이스에 사용자 프로필이 연결된 경우](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#if-a-workspace-has-a-profile-attached)를 참조하세요.

<Warning>
  삭제는 취소할 수 없습니다.
</Warning>

다음 예제는 사용자 프로필을 삭제합니다:

<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);

  echo $deleted->id, PHP_EOL;
  ```

  ```ruby Ruby
  client = Anthropic::Client.new

  deleted = client.user_profiles.delete(profile_id)

  puts deleted.id
  ```
</CodeGroup>

응답은 `"type": "user_profile_deleted"`와 함께 ID를 반복합니다. 삭제 요청이 서버 오류를 반환하면 다시 시도하세요. 재시도에서 `404`가 반환되면 첫 번째 삭제가 처리된 것입니다.

삭제 후 사용자 프로필 엔드포인트는 해당 ID에 대해 `404`를 반환합니다. 최대 약 10분 동안은 삭제된 ID를 포함한 추론 요청이 여전히 성공할 수 있습니다. 그 이후에는 [모든 요청에서 ID를 확인하는 플랫폼](https://platform.claude.com/docs/ko/manage-claude/user-profiles/attribute-requests#if-a-request-returns-a-400)이 해당 요청을 `400`으로 거부합니다. Claude Models on Google Cloud (Google managed)는 사용자 프로필을 조회하지 않으므로 여전히 ID를 허용합니다. Amazon Bedrock도 [사용자 프로필 ID를 허용하는 모델](https://platform.claude.com/docs/ko/manage-claude/user-profiles/platforms#amazon-bedrock-models)에서는 마찬가지입니다.

## 규칙 및 특수한 경우

### 필드에 인식하지 못하는 값이 있는 경우

인식하지 못하는 값은 다음과 같이 처리하세요:

| 필드 | 값을 다음으로 처리 |
| ----- | ----- |
| `enforcement_status` | `restricted` |
| `enforcement_actions[].type` | `restriction` |
| `enforcement_actions[].reason` | `unspecified` |
| `enforcement_actions[].action` | `null` |

### 시행 조치 필드가 누락된 경우

응답에 `enforcement_status`와 `enforcement_actions`가 모두 없으면 요청의 `anthropic-beta` 헤더를 확인하세요. `user-profiles-2026-09-04` 베타와 그 이전의 모든 사용자 프로필 베타는 두 필드를 모두 생략하며, `enforcement_status[]` 목록 필터가 `400`을 반환하게 합니다. 해당 베타는 제거하되 다른 베타는 유지하세요.

SDK 또는 CLI에서는 `client.beta.user_profiles` (typescript: `client.beta.userProfiles`; csharp, go: `client.Beta.UserProfiles`; java: `client.beta().userProfiles()`; php: `$client->beta->userProfiles`; cli: `ant beta:user-profiles`) 대신 `client.user_profiles` (typescript: `client.userProfiles`; csharp, go: `client.UserProfiles`; java: `client.userProfiles()`; php: `$client->userProfiles`; cli: `ant user-profiles`)를 호출하세요. 베타 네임스페이스는 `user-profiles-2026-08-18` 베타를 보내기 때문입니다.

### Claude Platform on AWS를 사용하는 경우

[Claude Platform on AWS](https://platform.claude.com/docs/ko/build-with-claude/claude-platform-on-aws)에서는 시행 조치 필드가 조치를 보고하지 않습니다. `enforcement_status`는 항상 `unrestricted`이고, `enforcement_actions`는 항상 비어 있습니다. 또한 그곳에서는 Anthropic이 열려 있는 조치를 이유로 요청을 거부하지 않습니다.
