users

Lister tous les utilisateurs

Changed on

Récupère la liste de tous les utilisateurs avec leurs permissions. Supporte la recherche par email. Accès limité aux administrateurs.

get/api/v2/users

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/auth, token URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/token)
    • API key in header x-refapp-token

Query parameters

pagenumber

Numéro de page

pageSizenumber
Example:15

Nombre de résultats par page, 0 pour supprimer la pagination

sortBystring
Example:label

Champ utilisé pour le tri

order'asc' | 'desc'
Example:asc

Ordre de tri

typestring[]

Type d'utilisateur. Utiliser les valeurs de /userTypes

[
  "human"
]
searchstring

Response

Liste paginée des utilisateurs

totalnumber required

Total number of items

Example response

{
  "results": [
    {
      "organization": {
        "id": "f09ed26a-8415-476a-be3b-ada479291c34",
        "path": "Direction de la transformation numérique",
        "sigle": "dtnum",
        "parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
        "businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34",
        "businessDivision": {
          "label": "farm"
        },
        "maiaReferences": [
          {
            "id": "f09ed26a-8415-476a-be3b-ada479291c34",
            "maiaRef": "MI/DNUM/SDID",
            "organizationId": "f09ed26a-8415-476a-be3b-ada479291c34"
          }
        ]
      },
      "scopeOrganization": {
        "id": "f09ed26a-8415-476a-be3b-ada479291c34",
        "path": "Direction de la transformation numérique",
        "sigle": "dtnum",
        "parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
        "businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34",
        "businessDivision": {
          "label": "farm"
        },
        "maiaReferences": [
          {
            "id": "f09ed26a-8415-476a-be3b-ada479291c34",
            "maiaRef": "MI/DNUM/SDID",
            "organizationId": "f09ed26a-8415-476a-be3b-ada479291c34"
          }
        ]
      }
    }
  ],
  "total": 100
}

Changes

    • warning

      added the new GlobalAdminManage enum value to the /// response property for the response status

    • warning

      added the new GlobalAdminManage enum value to the /// response property for the response status

    • warning

      added the new MditCampaignManage enum value to the /// response property for the response status

    • warning

      added the new MditCampaignManage enum value to the /// response property for the response status

    • warning

      added the new QualityCampaignManage enum value to the /// response property for the response status

    • warning

      added the new QualityCampaignManage enum value to the /// response property for the response status

    • warning

      added the new TechnologyList enum value to the /// response property for the response status

    • warning

      added the new TechnologyList enum value to the /// response property for the response status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the required property // to the response with the status