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

# 列出层级中的用户

> 列出某个层级的用户及其解析后的每周期 ACU 限额。

对于默认层级，此列表包含所有未被
显式分配到其他层级的有效账户成员。需要 ViewAccountConsumption 和 ViewAccountMembership 权限。

有关字段详情和示例，请参阅[预算](https://docs.devinenterprise.com/zh/admin/billing/budgets.md#list-a-tiers-users)。

## 权限

需要使用具有企业级 `ManageAcuLimits` 权限的[服务用户](https://docs.devinenterprise.com/zh/api-reference/v3/service-users/members-service-users.md)或[个人访问令牌](https://docs.devinenterprise.com/zh/api-reference/personal-access-tokens.md)，或者已获得该预算的[委派访问权限](https://docs.devinenterprise.com/zh/admin/billing/budgets.md#who-can-manage-a-budget)。


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3/enterprise/usage-policies/tiers/{tier_id}/users
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/tiers/{tier_id}/users:
    get:
      tags:
        - tiers
      summary: 列出层级中的用户
      description: |-
        列出某个层级的用户及其解析后的每周期 ACU 限额。

        对于默认层级，此列表包含所有未被
        显式分配到其他层级的有效账户成员。需要 ViewAccountConsumption 和 ViewAccountMembership 权限。
      operationId: >-
        handle_list_tier_users_v3_enterprise_usage_policies_tiers__tier_id__users_get
      parameters:
        - in: path
          name: tier_id
          required: true
          schema:
            title: Tier Id
            type: string
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_TierUserResponse_'
          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:
    PaginatedResponse_TierUserResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 用于获取下一页的游标；如果这是最后一页，则为 None。
          title: End Cursor
        has_next_page:
          default: false
          description: 此页之后是否还有更多条目。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/TierUserResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 可选的总数（可省略以提高性能）。
          title: Total
      required:
        - items
      title: PaginatedResponse[TierUserResponse]
      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
    TierUserResponse:
      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: 提供配额的单跳回退层级（如有）。
          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
        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
        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
      title: TierUserResponse
      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.