> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ユーザーの使用量ポリシーを取得

> ユーザーに現在適用されているティアと、サイクルごとに強制適用されるACU上限を取得します。

ユーザーのティア（明示的な割り当て、なければIdPグループマッピング、
それもなければアカウントのデフォルトティアの順で決定）、オーバーライド、実効上限、および
保留中の上限引き上げリクエストを取得します。人間のユーザーのIDとサービスユーザーの
IDを受け付けます。いずれのユーザーもアカウントメンバーである必要があります。ViewAccountConsumption
およびViewAccountMembership権限が必要です。

フィールドの詳細と使用例については、[予算](https://docs.devin.ai/ja/admin/billing/budgets.md#get-a-users-limits)を参照してください。

## 権限

エンタープライズレベルで `ManageAcuLimits` 権限を持つ[サービスユーザー](https://docs.devin.ai/ja/api-reference/v3/service-users/members-service-users.md)または[個人用アクセストークン](https://docs.devin.ai/ja/api-reference/personal-access-tokens.md)、あるいは対象予算への[委任されたアクセス権](https://docs.devin.ai/ja/admin/billing/budgets.md#who-can-manage-a-budget)が必要です。


## OpenAPI

````yaml ja/v3-openapi.yaml GET /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}:
    get:
      tags:
        - tiers
      summary: ユーザーの使用量ポリシーを取得
      description: |-
        ユーザーに現在適用されているティアと、サイクルごとに強制適用されるACU上限を取得します。

        ユーザーのティア（明示的な割り当て、なければIdPグループマッピング、
        それもなければアカウントのデフォルトティアの順で決定）、オーバーライド、実効上限、および
        保留中の上限引き上げリクエストを取得します。人間のユーザーのIDとサービスユーザーの
        IDを受け付けます。いずれのユーザーもアカウントメンバーである必要があります。ViewAccountConsumption
        およびViewAccountMembership権限が必要です。
      operationId: >-
        handle_get_usage_policy_user_v3_enterprise_usage_policies_budgets__budget_id__users__user_id__get
      parameters:
        - description: ユーザーID
          in: path
          name: user_id
          required: true
          schema:
            title: User Id
            type: string
        - description: 使用量ポリシーの管理対象となる予算。
          in: path
          name: budget_id
          required: true
          schema:
            description: 使用量ポリシーの管理対象となる予算。
            title: Budget Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserUsagePolicyResponse'
          description: 成功レスポンス
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 認証されていません
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: アクセスが禁止されています
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 見つかりません
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 競合
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 削除済み
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 処理できないコンテンツ
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: リクエスト過多
components:
  schemas:
    UserUsagePolicyResponse:
      description: ユーザーに適用されると決定されたティア、サイクルごとのACU上限、および保留中のリクエスト。
      properties:
        cycle_acu_limit_override:
          anyOf:
            - type: integer
            - type: 'null'
          description: ティアの上限に対するユーザーの永続的なオーバーライド（ある場合）。
          title: Cycle Acu Limit Override
        effective_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            ユーザーに現在強制適用されている上限。primary_cycle_acu_limit
            に、フォールバックティアの割り当て量があれば加算した値です。null は上限がないことを示します。
          title: Effective Cycle Acu Limit
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: ユーザーのメールアドレス（判明している場合）。
          title: Email
        fallback_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: フォールバックティアの割り当て量（ある場合）。
          title: Fallback Cycle Acu Limit
        fallback_tier_id:
          anyOf:
            - type: string
            - type: 'null'
          description: 追加の容量を提供する1段階先のフォールバックティア（ある場合）。
          title: Fallback Tier Id
        fallback_tier_name:
          anyOf:
            - type: string
            - type: 'null'
          description: フォールバックティアの名前（ある場合）。
          title: Fallback Tier Name
        limit_source:
          description: >-
            強制適用される実効上限の設定元。'override'（永続的なオーバーライド）、'temporary_override'、または
            'tier'。
          enum:
            - override
            - temporary_override
            - tier
          title: Limit Source
          type: string
        membership:
          description: >-
            ユーザーがそのティアに属する理由。'explicit'（直接の割り当て）、'idp_group' または
            'university_certification'（優先適用されるIdP グループまたは認定とティアとのマッピングによる）、あるいは
            'default'（アカウントのデフォルトティアへのフォールバック）。
          enum:
            - explicit
            - idp_group
            - university_certification
            - default
          title: Membership
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: ユーザーの表示名（判明している場合）。
          title: Name
        pending_request_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: 保留中のリクエストで要求されている、サイクルごとのACU上限。
          title: Pending Request Cycle Acu Limit
        pending_request_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ユーザーの保留中の上限引き上げリクエスト（ある場合）。GET /usage-policies/requests/{request_id}
            で取得できます。
          title: Pending Request Id
        primary_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: フォールバック分の容量を加算する前のプライマリ割り当て量。
          title: Primary Cycle Acu Limit
        temporary_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: ユーザーの一時的なオーバーライド。現在の月次請求期間内で有効な間のみ存在します。
          title: Temporary Cycle Acu Limit
        tier_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: オーバーライド適用前の、ティア自体のサイクルごとのACU上限。null は上限がないことを示します。
          title: Tier Cycle Acu Limit
        tier_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ユーザーの上限の決定元となるティア。明示的な割り当て、優先適用されるIDP
            グループのティアマッピング、アカウントのデフォルトティアの順に適用されます。アカウントにティアがない場合は null
            となり、ユーザーには上限がありません。
          title: Tier Id
        tier_name:
          anyOf:
            - type: string
            - type: 'null'
          description: そのティアの表示名（ある場合）。
          title: Tier Name
        user_id:
          description: ユーザーのID。
          title: User Id
          type: string
      required:
        - user_id
        - name
        - email
        - cycle_acu_limit_override
        - temporary_cycle_acu_limit
        - effective_cycle_acu_limit
        - primary_cycle_acu_limit
        - fallback_tier_id
        - fallback_tier_name
        - fallback_cycle_acu_limit
        - limit_source
        - membership
        - tier_id
        - tier_name
        - tier_cycle_acu_limit
        - pending_request_id
        - pending_request_cycle_acu_limit
      title: UserUsagePolicyResponse
      type: object
    ProblemDetail:
      description: >-
        v3 API 用の RFC 9457 application/problem+json エラーボディ。


        detail は後方互換性のため、レガシーな {"detail": ...}
        ボディから引き継がれます。その他のメンバーは追加式です。errors にはフィールドレベルのバリデーションエラーが含まれます（422
        の場合のみ）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: この事象に固有の、人が読める説明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: ブロックされた操作の拒否理由を示す機械可読コード（例："user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: フィールド単位のバリデーションエラー（422 レスポンスのみ）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: この発生箇所の URI 参照（リクエストパス）。
          title: Instance
        status:
          description: HTTP ステータスコード。
          title: Status
          type: integer
        title:
          description: 問題タイプを人が読める短い要約。
          title: Title
          type: string
        type:
          default: about:blank
          description: 問題タイプを識別する URI 参照。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.