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

# Get the current user session

> Get details about the current user, all roles directly assigned to that user, and all roles inherited from the realm by that user.



## OpenAPI

````yaml /api-reference/5.9/fusion-api-api-docs.json get /session
openapi: 3.0.1
info:
  title: Fusion Proxy API
  description: Manage Fusion users, roles, realms, access tokens, and API keys.
  contact:
    name: Lucidworks
    url: www.lucidworks.com
    email: support@lucidworks.com
  license:
    name: License of API
    url: https://lucidworks.com/legal/developer-license-agreement/
  version: '5.9'
servers:
  - url: https://{FUSION HOST}/api
    description: Fusion
    variables:
      FUSION HOST:
        default: FUSION_HOST
        description: Your environment host.
security: []
tags:
  - name: Realm management
    description: >-
      Endpoints for creating, configuring, and managing authentication realms
      such as LDAP, SAML, OIDC, and others.
  - name: User management
    description: >-
      Endpoints for creating, updating, deleting, and retrieving Fusion users
      and their associated metadata.
  - name: Suggestions
    description: >-
      Endpoints that provide query suggestions or autocomplete results to
      improve search experiences.
  - name: API key management
    description: >-
      Endpoints for managing API keys used to authenticate Fusion services and
      integrations.
  - name: OAuth 2.0
    description: >-
      Endpoints that support OAuth 2.0 authentication, including token issuance
      and validation.
  - name: Role management
    description: >-
      Endpoints for creating and managing user roles and their associated
      permissions within Fusion.
  - name: System status
    description: >-
      Endpoints for retrieving basic system health, configuration, and
      authentication status.
externalDocs:
  description: Lucidworks Documentation
  url: https://doc.lucidworks.com/
paths:
  /session:
    get:
      tags:
        - System status
      summary: Get the current user session
      description: >-
        Get details about the current user, all roles directly assigned to that
        user, and all roles inherited from the realm by that user.
      operationId: getSession
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                user:
                  id: 389ee4ee-08bf-3394-0b6b-6519372cfcae
                  username: api-user
                  realmName: native
                  createdAt: '2025-05-28T14:05:15Z'
                  roleNames:
                    - admin
                  permissions: []
                roles:
                  - id: 1a61a7e3-0009-2d1f-adf5-6f2f2ded1424
                    name: admin
                    createdAt: '2023-10-05T20:09:50Z'
                    desc: >-
                      Full access to every service. This is the super-admin
                      role.
                    permissions:
                      - methods:
                          - GET
                          - PUT
                          - PATCH
                          - HEAD
                          - DELETE
                          - POST
                        path: /**
                      - methods:
                          - GET
                          - PUT
                          - HEAD
                          - DELETE
                          - POST
                        path: /solrAdmin/**
                    uiPermissions:
                      - '*'

````