Gebruikers
Overzichttabel termen
Naam
Type
Verplicht bij aanmaken
Omschrijving
name
string
Ja
Naam van de gebruiker
title
string
Nee
Titel van de gebruiker. Bijv. Mevr. of Dhr.
firstName
string
Nee
Voornaam van de gebruiker
prefix
string
Nee
Tussenvoegsel
lastName
string
Nee
Achternaam van de gebruiker
string (email)
Ja
E-mailadres van de gebruiker. Hier logt de gebruiker mee in
roles
array
Ja
Je kunt rollen aan de gebruiker toevoegen. Per organisatie kan een rol verschillen. Als voorbeeld: Een gebruiker kan docent zijn bij opleiding A en functioneel kwaliteitsmanager bij een andere faculteit
organisations / linkedOrganisations
array
n.v.t.
Naast rollen wordt er ook een lijst met organisaties meegegeven bij het ophalen van gebruiker(s). Hierin staat welke organisaties gekoppeld zijn aan de gebruiker
additionalPermissionGroups
array
Nee
In Evalytics zijn er extra permissies mogelijk die je bij een gebruiker kan instellen. Zoals bijvoorbeeld: Evaluatiebeheer, cursusbeheer of docentbeheer.
noSurf
boolean
nee
Als de docent geen gebruik kan maken van saml, kan je noSurf meegeven. De gebruiker krijgt dan een inlog en wachtwoord.
lastActivationMail
timestamp
n.v.t.
Geeft aan wanneer er voor het laatst een activeringsmail is verstuurd
activated
boolean
n.v.t.
Geeft aan of een gebruiker geactiveerd is. De gebruiker krijgt, als je noSurf = true meegeeft, bij het aanmaken van een gebruiker een activerings e-mail. Na het activeren wordt activated op true gezet.
externalId
string
nee
Het externe id van de gebruiker
Gebruikers en docenten
Gebruikers en docenten zijn nauw met elkaar verbonden. Op het moment dat je een docent aanmaakt binnen de opleiding, zal er automatisch ook een gebruiker aangemaakt worden. Hetzelfde geldt voor concept gebruikers. Als je een concept gebruiker omzet naar docent, zal er automatisch ook een gebruiker aangemaakt worden. De gebruiker en docent zijn met elkaar gekoppeld.
Gebruikers ophalen (lijst)
GET https://api-portal.evalytics.nl/user
Hiermee kan je zoeken op gebruikers binnen de organisatie. Bij de gebruikers zullen ook de onderliggende rollen en organisaties toegevoegd worden aan de response
Query Parameters
includeChildOrganisations
boolean
Haal ook gebruikers op uit organisaties die onder de huidige organisatie staan
role
array
Filter de users op een bepaalde role. Je kunt hier de ids van de rolen meegeven waarop je wilt filteren
q
string
Zoeken binnen gebruikers op naam, code en e-mail
{
"metadata": {
...
},
"results": [
{
"organisations": [
{
"parent": 100,
"topOrganisation": 100,
"name": "TestFaculteit",
"code": "tf",
"type": "faculty",
"availableModules": null,
"modules": null,
"externalId": "ABC",
"id": 1
}
],
"roles": [
{
"id": 123,
"user": 567,
"evaluator": null,
"role": 13,
"organisation": 100
}
],
"organisation": 100,
"topOrganisation": 100,
"name": "Example user",
"title": "",
"firstName": "Example",
"prefix": "",
"lastName": "user",
"email": "[email protected]",
"altId": null,
"externalId": "ABC",
"activated": true,
"lastActivationMail": "2020-12-29T10:15:09.000Z",
"id": 567
}
}]
}
Gebruiker ophalen (item)
GET https://api-portal.evalytics.nl/user/:id
Haal een enkele gebruiker op. Organisaties en rollen waar de gebruiker aan gekoppeld is worden ook toegevoegd.
Path Parameters
id
string
Intern id of extern id van de gebruiker
showPropagatedRoles
boolean
Indien het nieuwe gebruikersbeheer actief is: hiermee krijg je alle individuele rollen terug die uit propagate zijn voortgekomen
{
"linkedOrganisations": [
{
"parent": 100,
"topOrganisation": 100,
"name": "TestFaculteit",
"code": "tf",
"type": "faculty",
"availableModules": null,
"modules": null,
"externalId": "ABC",
"id": 1
}
],
"roles": [
{
"id": 123,
"user": 567,
"evaluator": null,
"role": 13,
"organisation": 100
// Indien het nieuwe gebruikersbeheer actief is: geeft de status van de toegang aan. Kan enkel gebruikt worden i.c.m. `role` "3" (teacher)
"enabled": true
// Indien het nieuwe gebruikersbeheer actief is: voert de rol door op alle onderliggende organisaties. Kan gebruikt worden i.c.m. `role` anders dan "3" (teacher)
"propagate": false
// Indien het nieuwe gebruikersbeheer actief is: geeft aan of de rol voortkomt uit een andere rol waar `propagate: true`. Kan gebruikt worden i.c.m. `role` anders dan "3" (teacher).
"propagated": false
}
],
"organisation": 100,
"topOrganisation": 100,
"name": "Example user",
"title": "",
"firstName": "Example",
"prefix": "",
"lastName": "user",
"email": "[email protected]",
"altId": null,
"activated": true,
"lastActivationMail": "2020-12-29T10:15:09.000Z",
"id": 567
}Gebruiker aanmaken
POST https://api-portal.evalytics.nl/user
Als je een gebruiker aanmaakt moet het e-mailadres uniek zijn. Het is niet mogelijk om meerdere gebruikers aan te maken met hetzelfde e-mailadres
{
"deleted": false,
"createdBy": "3",
"modifiedBy": "3",
"name": "pascal api docs",
"title": "",
"firstName": "Pascal",
"prefix": "",
"lastName": "api docs",
"email": "[email protected]",
"altId": null,
"activated": false,
"lastActivationMail": "2021-02-25T10:21:39.000Z",
"organisation": 100,
"topOrganisation": 100,
"id": 123
}{
"name": (string - deprecated),
"title": "(string)",
"firstName": "(string - required when you do not use the name field)",
"prefix": "(string)",
"lastName": "(string - required when you do not use the name field)",
"email": (string - required),
"noSurf":(boolean),
"externalId: (string),
"additionalPermissionGroups":[
{
“organisation”: (integer),
“additionalPermissionGroup”: (integer)
// Indien het nieuwe gebruikersbeheer actief is: geeft aan of de rol gekoppeld is aan `role` "3" (teacher).
"isTeacher": (boolean)
}
],
“roles”: [
{
“organisation”: (integer - at least one role required),
“role”: (integer)
// Indien het nieuwe gebruikersbeheer actief is: geeft de status van de toegang aan. Kan enkel gebruikt worden i.c.m. `role` "3" (teacher)
"enabled": (boolean)
// Indien het nieuwe gebruikersbeheer actief is: voert de rol door op alle onderliggende organisaties. Kan gebruikt worden i.c.m. `role` anders dan "3" (teacher)
"propagate": (boolean)
}
]
}Gebruiker bijwerken
POST https://api-portal.evalytics.nl/user/:id
Het is mogelijk om een gebruiker bij te werken. Je kunt de gebruiker bijvoorbeeld extra rollen geven of de naam aanpassen. Het aanpassen van het e-mailadres is niet mogelijk.
Path Parameters
id
string
Intern id of extern id van de gebruiker
{
"deleted": false,
"createdBy": "3",
"modifiedBy": "3",
"name": "pascal api docs updated name",
"title": "",
"firstName": "Pascal",
"prefix": "",
"lastName": "api docs updated name",
"email": "[email protected]",
"altId": null,
"activated": false,
"lastActivationMail": "2021-02-25T10:21:39.000Z",
"organisation": 100,
"topOrganisation": 100,
"id": 123
}{
"externalId": (string),
"name": (string - deprecated),
"title": "(string)",
"firstName": "(string - required when you do not use the name field)",
"prefix": "(string)",
"lastName": "(string - required when you do not use the name field)",
"noSurf":(boolean),
"additionalPermissionGroups":[
{
“organisation”: (integer),
“additionalPermissionGroup”: (integer)
// Indien het nieuwe gebruikersbeheer actief is: geeft aan of de rol gekoppeld is aan `role` "3" (teacher).
"isTeacher": (boolean)
}
],
“roles”: [
{
“organisation”: (number),
“role”: (number)
// Indien het nieuwe gebruikersbeheer actief is: geeft de status van de toegang aan. Kan enkel gebruikt worden i.c.m. `role` "3" (teacher)
"enabled": true
// Indien het nieuwe gebruikersbeheer actief is: voert de rol door op alle onderliggende organisaties. Kan gebruikt worden i.c.m. `role` anders dan "3" (teacher)
"propagate": false
}
]
}Gebruiker verwijderen
DELETE https://api-portal.evalytics.nl/user/:id
Path Parameters
id
string
Intern id of extern id van de gebruiker
Query Parameters
undo
boolean
Maakt de verwijderingsactie ongedaan
Block user
POST https://api-portal.evalytics.nl/user/:id/block
Block a user in Evalytics. When a user is blocked: - The user is not able to login - The user will not receive notifications in the period the user is blocked - The linked organisations and roles will not be removed
Path Parameters
id
string
Internal or external id
Query Parameters
undo
boolean
Undo the block action
Upgrading to User Management 2.0
On 09-07-2025 a new update was released which introduced User Mangement 2.0. Most notably the feature to apply (propagate) roles and permissions to underlying organisations was introduced. To accomodate this change the API underwent a couple of slight changes, which is why 2.0 is opt-in for the next 3 months. The following changes have been made:
Teacher-roles should no longer be added through the
/userendpoints, since these are of no value when no teacher is created throughPOST /teacher. Instead, retrieve the user beforehand to find out where the teacher role is applicable and disable (or omit) it if necessaryNew attributes have been added to
POST /userandPUT /user:additionalPermissionGroups[].isTeacherdescribes if the additional permissions should be linked to the teacher role, this is reflected on the frontend since teacher roles and permissions are now managed in a separate step in the user formroles[].enabledin case the role is the teacher-role. This marks a teacher role as enabled or disabled.roles[].propagateapplies all roles and additional permissions to the organisation itself and all child organisations, including new child organisations which can be added later. Note that this applies all given roles for the organisation, you can not partially (e.g. one role for the parent org, another for the child). This also applies possibleadditionalPermissionGroupsfor the organisation. Note that this function can only be used by a user with the administrator role
New attributes and a data flag have been added to
GET /user/:id:The three attributes from above.
roles[].propagateddescribes if a role is propagated from a parent organisation, which means the role is locked on this levelA flag
showPropagatedRoles=falsecan be given toGET /user/:idwhich removes possible propagated roles, only returning normal or propagating roles insteadNote that you may receive more teacher roles than expected when retrieving a user: if a teacher role was previously removed but the teacher-object is still available, a role is added to the response with
enabledset tofalse
The
nameattribute has been deprecated. Instead, use at leastfirstNameandlastName.
To migrate, in short:
Do not add new teacher roles though the user endpoints
When adding
additionalPermissionGroupsto a teacher role, ensureisTeacheris set totrueImplement propagation logic, keep in mind that an administrator can use this functionality at any time on the Evalytics portal. For instance errors can be thrown when trying to add a role to an organisation where
propagatedis set totrue
We want to make sure everyone is at the latest version before removing deprecated logic, so please contact us in case you encounter any issues during your migration!
Last updated