Users

Get Authorized Uids

Changed on

Retrieves all UIDs authorized for the currently authenticated data producer.

get/api/user/v1/authorized-uids

Request

  • The document declares no server URL.
  • Auth
    OpenID Connect (http://localhost:6999/realms/agate/.well-known/openid-configuration, scopes: agridata.ch.Agridata_Einwilliger, agridata.ch.Agridata_Support, agridata.ch.Agridata_Admin)

Query parameters

agate-login-idstring

The agateLoginId of the producer (only relevant for admin users)

kt-id-pstring

The kt-id-p identifier of the producer (only relevant for admin users)

actingRole'PRODUCER' | 'ADMIN' | 'SUPPORT'

Selects the role in which the authenticated user acts for this request. Optional: if the authenticated user holds exactly one of the allowed roles, the value is auto-resolved. Returns 400 if the value is unknown, not allowed for this endpoint, or omitted while the user holds multiple matching roles. Returns 403 if the user does not hold the role specified in the parameter.

Response

OK

uidstring required
namestring
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'

Changes

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status