users

Récupérer ses propres informations utilisateur

Changed on
get/api/v2/users/me

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

Response

Informations utilisateur trouvées

role'VISITOR' | 'READER' | 'CONTRIBUTOR' | 'ADMIN' required

Role attribué a un utilisateur

type'human' | 'bot' required
emailNotificationsEnabledboolean

Préférence de notification par email

additionalPermissionsPermission[] required

Liste des permissions supplémentaire accordé a un user

lastPermissionChangeAtstring date-time nullable

Date de la dernière modification des droits (rôle/permissions) de cet utilisateur

lastPermissionChangedByEmailstring nullable

Email de l'auteur de la dernière modification des droits. Null si jamais modifié ou si l'auteur a depuis été supprimé.

lastPermissionChangedByImpersonatorEmailstring nullable

Email de l'administrateur réel si la dernière modification des droits a été faite sous impersonation (#2061).

isBlockedboolean required

Si l'accès de l'utilisateur est bloqué. Un utilisateur bloqué est rejeté à l'authentification.

blockedAtstring date-time nullable

Date à laquelle l'utilisateur a été bloqué

permissionsPermission[]

Liste des permissions lié au role d'un user

idstring required
emailstring required
organizationIdstring nullable required
scopeOrganizationIdstring nullable required

Example response

{
  "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"
      }
    ]
  }
}

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

    • 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