Definitionen av ESI

https://wiki.geant.org/display/SM/European+Student+Identifier:

ESI with nation-wide (or region-wide) scope student code :

urn:schac:personalUniqueCode:int:esi:<country-code>:<code>

ESI with HEI-wide scope student code :

urn:schac:personalUniqueCode:int:esi:<sHO>:<code>

Where:

Examples

Non-normative examples for both forms:

StudentUID från Ladok

I Ladok finns ett internt StudentUID för varje student. Värdet kommer ursprungligen från UHR:s studenttjänst och samordnas med NyA/Antagning.se.

Från https://wiki.refeds.org/display/STAN/SCHAC+Releases:

#
# schacPersonalUniqueCode
#
# Descrip: Specifies a "unique code" for the subject it is associated with.
# Its value does not necessarily correspond to any identifier
# outside the scope of the directories using this schema.
#
# This might be Student number, Employee number,...
#
# Format: urn:mace:terena.org:schac:personalUniqueCode:<country-code>:<iNSS>
#
# - The <country-code> must be a valid two-letter ISO 3166 country
# code identifier or the string "int", and assigned by the TERENA
# URN Registry for this attribute at
# http://www.terena.org/registry/terena.org/schac/personalUniqueCode/
#
# - <iNSS> is a Namespace Specific String as defined in RFC 2141
# but case insensitive.
#
# Example: Common Values:
#
# urn:mace:terena.org:schac:personalUniqueCode:int:studentID:<country-code>:<code>
#
# National extensions:
#
# urn:mace:terena.org:schac:personalUniqueCode:fi:tut.fi:hetu:010161-995A
# urn:mace:terena.org:schac:personalUniqueCode:es:uma:estudiante:a3b123c12
# urn:mace:terena.org:schac:personalUniqueCode:se:LIN:87654321
#
attributetype ( schacAttributeType:14
NAME 'schacPersonalUniqueCode'
DESC 'unique code for the subject'
EQUALITY caseIgnoreMatch
ORDERING caseIgnoreOrderingMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

StudentUID i Ladok är ett uuid, exempelvis 9e342e78-5b6c-4902-966e-50e28a21e601. StudentUID ska läggas

schacPersonalUniqueCode blir då: urn:schac:PersonalUniqueCode:int:esi:ladok.se:9e342e78-5b6c-4902-966e-50e28a21e601 (77 tecken).

Notera att ESI-värdet bara ska släppas för aktiva studenter. Det går alltså inte att plocka StudentUID direkt från Antagning.se då alla användare där inte är (eller har varit) aktiva studenter.