---
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

---

[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)
