---
title: "Get User Info"
method: GET
path: "/api/user/v1/user-info"
tags: ["Users"]
---

# Get User Info

`GET /api/user/v1/user-info`

Retrieves user-info for the currently authenticated user.

## Response `200`

OK

- UserInfoDto — Represents basic user information, such as name, contact details, and address.
  - `userId` string, uuid
  - `agateLoginId` string — AgateLoginId of the user.
  - `ktIdP` string — KtIdP of the user. Only set for data producers
  - `uid` string — UID of the user. Only set for data consumers.
  - `givenName` string — User's first name.
  - `familyName` string — User's last name.
  - `email` string — Email address of the user
  - `phoneNumber` string — Landline number of the user
  - `mobileNumber` string — Mobile number of the user
  - `addressStreet` string — Street name and house number of the user's residence.
  - `addressLocality` string — Locality (city or town) of the user's residence.
  - `addressPostalCode` string — Postal code of the user's residence.
  - `addressCountry` string — Country of residence
  - `lastLoginDate` string, date-time
  - `userPreferences` UserPreferencesDto
    - `mainMenuOpened` boolean — If the main menu is opened or closed.
    - `activeUid` string — the active uid of the producer
    - `dismissedMigratedIds` string[] — consent request ids for which we dont want to show migration notices anymore
    - `hasSeenConsentRequestTourIntro` boolean — Indicates whether the user has already seen the consent request feature tour introduction.
  - `rolesAtLastLogin` string[] — Roles of the user at the last login
  - `lastAcceptedAgbDate` string, date-time
  - `lastAcceptedAgbRevisionId` string, uuid

## Other responses

- `401` — Not Authorized
- `403` — Not Allowed
- `404` — The resource or element was not found
- `500` — Internal server error: unexpected error

---

[API](https://skmtc.net/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.net/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/versions/4f3c6bfcfcfd/schema)
