Users

Get Agb Acceptances

Changed on

Returns the AGB acceptance state of all users who accepted the AGB at least once. The search term is matched against the UID (stored without separators, e.g. CHE123456789). Supports the filter 'status' (ACCEPTED, TRANSITION_PERIOD, PENDING), pagination and sorting on 'givenName', 'familyName', 'email', 'uid' and 'lastAcceptedAgbDate' (default: uid,familyName).

get/api/user/v1/agb-acceptances

Request

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

Query parameters

filterobject

Column filters in the form '<column>:<value>[,<value>]', multiple filters separated by ';'. Values of the same column are combined with OR, filters on different columns with AND. Duplicate values are ignored. The filterable columns are documented per endpoint.

languagestring

language code for multilingual fields. Must be supported by application.

pageinteger

page number

searchTermstring

string to search for in the resource

sizeinteger

page size

sortByobject

List of field names to sort by. Default is ascending prefix with - for descending

Response

OK

totalItemsinteger required

Total number of items across all pages.

totalPagesinteger required

Total number of pages available.

currentPageinteger required

Current page number (0-based ).

pageSizeinteger required

Number of items per page.

Example response

{
  "items": [
    {
      "givenName": "Anna",
      "familyName": "Muster",
      "email": "anna.muster@example.com",
      "uid": "CHE123456789",
      "lastAcceptedAgbDate": "2022-03-10T12:15:50",
      "lastAcceptedAgbVersion": "1.4"
    }
  ],
  "totalItems": 42,
  "totalPages": 5,
  "currentPage": 1,
  "pageSize": 10
}

Changes