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

# Get User Effective Grants

> List a member's effective IAM grants in the organization.



## OpenAPI

````yaml GET /orgs/{org_id}/iam/users/{user_id}/effective-grants
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/iam/users/{user_id}/effective-grants:
    get:
      tags:
        - iam
      description: List a member's effective IAM grants in the organization.
      operationId: handler
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Effective grants for the user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EffectiveGrantsResBody'
        '403':
          description: Forbidden
        '422':
          description: Target user is not a member
      security:
        - bearer_auth: []
components:
  schemas:
    EffectiveGrantsResBody:
      type: object
      required:
        - user_id
        - is_superadmin
        - grants
      properties:
        grants:
          type: array
          items:
            $ref: '#/components/schemas/EffectiveGrant'
          description: Effective grants for the user, with role attribution.
        is_superadmin:
          type: boolean
          description: Whether the target user is a platform superadmin.
        user_id:
          type: string
          description: Echoes the target user id.
    EffectiveGrant:
      type: object
      required:
        - effect
        - action
        - via
      properties:
        action:
          type: string
        effect:
          $ref: '#/components/schemas/GrantEffect'
        resource:
          type:
            - string
            - 'null'
          description: Scope-intersected resource pattern for this grant.
        via:
          $ref: '#/components/schemas/GrantAttribution'
          description: Role that contributed this grant.
    GrantEffect:
      type: string
      description: Effect of a [`RoleGrant`]. `deny` wins at eval time.
      enum:
        - allow
        - deny
    GrantAttribution:
      type: object
      description: |-
        Attribution for a single grant: which role contributed it, what
        attachment-level scope was in effect, and the resource pattern as
        authored on the role (pre-scope-intersection).

        Shared by `POST /iam/check` (matched_allows / matched_denies) and
        `GET /iam/users/{id}/effective-grants` (the `via` field on each row).

        To derive the effective resource a grant matched against, compute
        `resource_pattern_intersect(grant_resource, attachment_scope)`. When
        `attachment_scope` is `null`, the effective resource equals
        `grant_resource`.
      required:
        - role_id
        - role_name
      properties:
        attachment_scope:
          type:
            - string
            - 'null'
        grant_resource:
          type:
            - string
            - 'null'
        role_id:
          type: string
        role_name:
          type: string
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````