> ## 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.

# Get a user's usage policy

> Get the tier and per-cycle ACU limit currently enforced for a user.

Resolves the user's tier (explicit assignment, else IdP group mapping,
else the account default), their overrides, the effective limit, and any
pending limit-increase request. Accepts human user ids and service-user
ids; either must be an account member. Requires ManageAcuLimits because
the response includes the user's pending limit-increase request.

See [Budgets](https://docs.devin.ai/admin/billing/budgets.md#get-a-users-limits) for field details and examples.

## Permissions

Requires a [service user](https://docs.devin.ai/api-reference/v3/service-users/members-service-users.md) or [personal access token](https://docs.devin.ai/api-reference/personal-access-tokens.md) with the `ManageAcuLimits` permission at the enterprise level, or [delegated access](https://docs.devin.ai/admin/billing/budgets.md#who-can-manage-a-budget) to the budget.


## OpenAPI

````yaml v3-openapi.yaml GET /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  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: Get a user's usage policy
      description: |-
        Get the tier and per-cycle ACU limit currently enforced for a user.

        Resolves the user's tier (explicit assignment, else IdP group mapping,
        else the account default), their overrides, the effective limit, and any
        pending limit-increase request. Accepts human user ids and service-user
        ids; either must be an account member. Requires ManageAcuLimits because
        the response includes the user's pending limit-increase request.
      operationId: >-
        handle_get_usage_policy_user_v3_enterprise_usage_policies_budgets__budget_id__users__user_id__get
      parameters:
        - description: User ID
          in: path
          name: user_id
          required: true
          schema:
            title: User Id
            type: string
        - description: The budget whose usage policies are managed.
          in: path
          name: budget_id
          required: true
          schema:
            description: The budget whose usage policies are managed.
            title: Budget Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserUsagePolicyResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Too Many Requests
components:
  schemas:
    UserUsagePolicyResponse:
      description: A user's resolved tier, per-cycle ACU limit, and pending request.
      properties:
        cycle_acu_limit_override:
          anyOf:
            - type: integer
            - type: 'null'
          description: The user's permanent override of the tier limit, if any.
          title: Cycle Acu Limit Override
        effective_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The limit currently enforced for the user: primary_cycle_acu_limit
            plus any fallback tier allocation. null means uncapped.
          title: Effective Cycle Acu Limit
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: The user's email, if known.
          title: Email
        fallback_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: The fallback tier allocation, if any.
          title: Fallback Cycle Acu Limit
        fallback_tier_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The one-hop fallback tier contributing capacity, if any.
          title: Fallback Tier Id
        fallback_tier_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The fallback tier name, if any.
          title: Fallback Tier Name
        limit_source:
          description: >-
            Where the enforced effective limit comes from: 'override'
            (permanent), 'temporary_override', or 'tier'.
          enum:
            - override
            - temporary_override
            - tier
          title: Limit Source
          type: string
        membership:
          description: >-
            Why the user is in the tier: 'explicit' (directly assigned),
            'idp_group' or 'university_certification' (via their winning IdP
            group or certification tier mapping), or 'default' (fallback to the
            account's default tier).
          enum:
            - explicit
            - idp_group
            - university_certification
            - default
          title: Membership
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: The user's display name, if known.
          title: Name
        pending_request_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: The per-cycle ACU limit the pending request asks for.
          title: Pending Request Cycle Acu Limit
        pending_request_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The user's pending limit-increase request, if any; resolve it via
            GET /usage-policies/requests/{request_id}.
          title: Pending Request Id
        primary_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: The primary allocation before any fallback capacity.
          title: Primary Cycle Acu Limit
        temporary_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The user's temporary override, present only while it is live in the
            current monthly billing window.
          title: Temporary Cycle Acu Limit
        tier_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The tier's own per-cycle ACU limit before any override; null means
            uncapped.
          title: Tier Cycle Acu Limit
        tier_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The tier the user's limit resolves from: their explicit assignment,
            else their winning IdP group tier mapping, else the account's
            default tier. null when the account has no tiers, in which case the
            user is uncapped.
          title: Tier Id
        tier_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Display name of that tier, if any.
          title: Tier Name
        user_id:
          description: The user's 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: >-
        RFC 9457 application/problem+json error body for the v3 API.


        detail is retained from the legacy {"detail": ...} body for back-compat;
        the

        other members are additive. errors carries field-level validation
        failures

        (422 only).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: A human-readable explanation specific to this occurrence.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Machine-readable code for blocked-action refusals (e.g.
            "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Field-level validation errors (422 responses only).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: A URI reference (the request path) for this occurrence.
          title: Instance
        status:
          description: The HTTP status code.
          title: Status
          type: integer
        title:
          description: A short, human-readable summary of the problem type.
          title: Title
          type: string
        type:
          default: about:blank
          description: A URI reference identifying the problem type.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````

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