Guardian API

An API for information about students’ parents/guardians, and vice versa.

Warning

This is a proof of concept implementation. It may be changed or discontinued at short notice.

All calls are to be made using ‘POST’.

Examples

This section contains two examples. One example looks up the guardians for a given student, while the other example looks up the students of a given guardian.

Both examples assume that you are logged into Feide and that $TOKEN contains the access token you received during authentication. You must also have the gk_guaridanapi scope in order to be able to access this API.

Guardians for a student

Look up the guardians of a given student.

curl -sS -H "Authorization: Bearer $TOKEN" -d student=thea_elevg@spusers.feide.no \
   https://guardianapi.dataporten-api.no/student_guardians

[{"norEduPersonGuardianNIN": "21079416549"}, {"norEduPersonGuardianNIN": "20079498441"}]

Returns application/json array of one object for each of the student’s guardians. Currently, the only attribute is norEduPersonGuardianNIN - the national ID number of the guardian.

In this proof of concept implementation, only the logged in student’s own guardians may be looked up. It is possible that we may later want to allow teachers or administrators to perform the call. This is the reason that there is an explicit student parameter.

Students for a guardian

Look up students for a given guardian.

curl -sS -H "Authorization: Bearer $TOKEN"  -d guardian=21079416549 -d realm=spusers.feide.no \
   https://guardianapi.dataporten-api.no/guardian_students

[{"eduPersonPrincipalName": "thea_elevg@spusers.feide.no"}]

Returns application/json array of one object for each of the students in a Feide realm the guardian is parent/guardian of. Currently, the only attribute is the eduPersonPrincipalName of the student.

In this proof of concept implementation, only the logged in guardian’s own students may be looked up. It is possible that we may later want to allow teachers or administrators to perform the call. This is the reason that there is an explicit guardian parameter.