users
Synchroniser l'organisation d'un utilisateur depuis MAIA
Changed onRecherche l'utilisateur dans MAIA à partir de son email, crée l'organisation si nécessaire, puis l'associe à l'utilisateur ciblé.
post/api/v2/users/{id}/sync-organization-from-maia
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
Path parameters
idstring required
ID de l'utilisateur
Response
Organisation synchronisée avec succès
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
TechnologyListenum value to the/response property for the response status - warning
added the new
TechnologyListenum value to the/response property for the response status
- warning
- info
added the optional property
to the response with the status
- info