---
title: "Get Authorized Uids"
method: GET
path: "/api/user/v1/authorized-uids"
tags: ["Users"]
---

# Get Authorized Uids

`GET /api/user/v1/authorized-uids`

Retrieves all UIDs authorized for the currently authenticated data producer.

## Query parameters

- `agate-login-id` string
- `kt-id-p` string
- `actingRole` 'PRODUCER' | 'ADMIN' | 'SUPPORT'

## Response `200`

OK

- UidDto[]
  - `uid` string, required
  - `name` string
  - `legalFormCode` 'NATUERLICHE_PERSON' | 'EINFACHE_GESELLSCHAFT' | 'KOLLEKTIVGESELLSCHAFT' | 'KOMMANDITGESELLSCHAFT' | 'KOMMANDITAKTIENGESELLSCHAFT' | 'AKTIENGESELLSCHAFT' | 'GMBH' | 'GENOSSENSCHAFT' | 'VEREIN' | 'STIFTUNG' | 'OEFF_RECHT_KOERPERSCHAFT_VERWALTUNG' | 'LANDESKIRCHE' | 'BUND' | 'KANTON' | 'BEZIRK' | 'GEMEINDE' | 'OEFF_RECHT_KOERPERSCHAFT_BETRIEB' | 'EQUIDENEIGENTUEMER' | 'UNKNOWN'

## Other responses

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

## Changes

- **2026-06-04** `d1729646b766` — 2 warning
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `404`
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `500`
- **2026-05-29** `a598446f8093` — 2 info
  - removed the `DATA_PROVIDER_ERROR` enum value from the `type` response property for the response status `404`
  - removed the `DATA_PROVIDER_ERROR` enum value from the `type` response property for the response status `500`
- **2026-05-26** `7cee7b14bf6f` — 2 warning, 1 info
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `404`
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `500`
  - added the new optional `query` request parameter `actingRole`
- **2026-05-12** `5b038eea902d` — 8 warning
  - added the new `OTP_EXPIRED` enum value to the `type` response property for the response status `404`
  - added the new `OTP_EXPIRED` enum value to the `type` response property for the response status `500`
  - added the new `OTP_INVALID` enum value to the `type` response property for the response status `404`
  - added the new `OTP_INVALID` enum value to the `type` response property for the response status `500`
  - …4 more
- …earlier changes not shown

[Full history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/user/v1/authorized-uids/get.md)

---

[API](https://skmtc.dev/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.dev/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/revisions/5760204210ed/schema)
