GET ./utilizatori/profile

It is used to get information about a user(uaID).

GET parameters

NameValue TypeValidationDetails
uaIDintRequiredUser ID. If ID is not provided, endpoint will return information about the authenticated user.
cuElevintOptional Value[0,1]If the parameter is provided, the response will have a key named elev that will return information about the student you are a parent of.
cuPermisiuniintOptional Value[0,1]If the parameter is provided, the response will have a key named permisiuni that will contain the user's permission.
cuLiceuintOptional Value[0,1]If the parameter is provided, the response will have information about the school where the user is studying
withRolesintOptional Value[0,1]If specified the roles will also be retrieved in the request.

Validation

Error FieldError CodeError Message
uaID101Invalid username

Output example

{
"uaID": "96514",
"uaTip": "3",
"uaUserName": "some-username",
"uaLiceuID": "17",
"uaLastLogin": "2017-10-13 19:47:47",
"prefAvatar": "https://dl.adservio.ro/avatar/96514-BrhPJteOic9jYLMVFqkz.jpg",
"prefLangID": "ro",
"uaFirstName": "Valeriu",
"uaLastName": "Anița",
"uaSex": "1",
"uaDataNasterii": "1987-10-21",
"uaEmail": "test@example.com",
"uaEmailValidat": "0",
"uaTel": "+40768248202",
"uaTelValidat": "0",
"permisiuni": [
{
"permID": "14",
"permNume": "Profesor"
},
{
"permID": "16",
"permNume": "Director"
},
{
"permID": "19",
"permNume": "Sincronizare catalog"
},
{
"permID": "26",
"permNume": "Educator"
}
],
"liceu": {
"liceuID": "2",
"liceuNume": "C.Național",
"liceuOrgType": "1",
"liceuOrgRootID": "260",
"liceuOrgParentID": null,
"liceuClasificare": "Colegiul",
"liceuLogo": "https://s3.eu-west-1.amazonaws.com/adservio-public/organizations/2/org-logos/FMgiH.png",
"judNume": "Iași",
"taraID": "1",
"taraNume": "tara_ro",
"taraNumeLocalized": "România"
}
}