---
title: "Get Current User"
url: "https://developer.migros.ch/apis/hr25-compensation-api-0/versions/81e689e4-d95b-44d7-a80e-882b791b85b2/operations/get_current_user_me_get"
---

> Full API specification: https://developer.migros.ch/apis/hr25-compensation-api-0/versions/81e689e4-d95b-44d7-a80e-882b791b85b2.md

# Get Current User

`GET` `/migros/human-resources/hrsolcomp/v1/me`

Operation ID: `get_current_user_me_get`

Get current user information. Returns Dataverse user info including: - userId: Dataverse system user GUID - businessUnitId: User's business unit GUID - organizationId: Organization GUID PowerApps usage: Simply call this endpoint - the connector passes your token automatically.

## Header parameters

- `authorization` (string, optional)

## Responses

- `200` - Successful Response
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: HR25 Compensation API
  version: 0.1.0
servers:
  - url: https://hr25-comp.service.migros.cloud
paths:
  /migros/human-resources/hrsolcomp/v1/me:
    get:
      description: >-
        Get current user information.


        Returns Dataverse user info including:

        - userId: Dataverse system user GUID

        - businessUnitId: User's business unit GUID

        - organizationId: Organization GUID


        PowerApps usage:
            Simply call this endpoint - the connector passes your token automatically.
      operationId: get_current_user_me_get
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            title: Authorization
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                additionalProperties: true
                title: Response Get Current User Me Get
                type: object
          description: Successful Response
        "422":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
          description: Validation Error
      summary: Get Current User
      tags:
        - user
      x-kong-route-defaults:
        strip_path: true
        tags:
          - hr25-comp
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
```
