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

# Get a user's effective access



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /rbac/users/{id}/effective
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /rbac/users/{id}/effective:
    get:
      tags:
        - rbac
      summary: Get a user's effective access
      parameters:
        - name: id
          in: path
          description: User ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.EffectiveAccessResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.EffectiveAccessResponse:
      type: object
      properties:
        admin_nav_hint:
          type: boolean
          description: >-
            AdminNavHint tells the UI to show the admin navigation: the user
            holds

            some permission, globally or within a Workspace. A UI hint only: it
            is

            not users.is_admin, and nothing on the server authorizes on it.
        enabled:
          type: boolean
        has_admin_access:
          type: boolean
        is_full_admin:
          type: boolean
        permissions:
          type: array
          items:
            type: string
        roles:
          type: array
          items:
            $ref: '#/components/schemas/rbac.RoleSummary'
        sources:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/rbac.PermissionSource'
        user_id:
          type: integer
        workspaces:
          type: array
          description: |-
            Workspaces lists the access Workspace-scoped bindings grant, per
            Workspace (Enterprise). Permissions above are global and cover every
            Workspace; they are not repeated here.
          items:
            $ref: '#/components/schemas/api.WorkspaceAccess'
      description: Effective permissions for a user
    rbac.RoleSummary:
      type: object
      properties:
        group_id:
          type: integer
          description: when Via == "group"
        group_name:
          type: string
          description: when Via == "group"
        id:
          type: integer
        is_system:
          type: boolean
        name:
          type: string
        slug:
          type: string
        via:
          type: string
          description: >-
            "direct" | "group" | "host" (direct, assigned by the host
            application)| "group"
    rbac.PermissionSource:
      type: object
      properties:
        group_id:
          type: integer
          description: when Via == "group"
        group_name:
          type: string
          description: when Via == "group"
        role_id:
          type: integer
        role_name:
          type: string
        via:
          type: string
          description: '"direct" | "group"'
    api.WorkspaceAccess:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        permissions:
          type: array
          items:
            type: string
        roles:
          type: array
          items:
            $ref: '#/components/schemas/rbac.RoleSummary'
        sources:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/rbac.PermissionSource'
      description: Access inside one Workspace
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````