This page contains information about the SAML attributes that an eduGAIN-enabled service can use. The attributes below only cover those attributes that are recommended to implement for Identity Providers in eduGAIN Attribute Profile. However, additional attributes (e.g. givenName and surname) also can be used if both, Service Provider and Identity Provider, agree on what is being requested and released.
What user attributes can eduGAIN services use?
There are no strict requirements which attributes must be availble for a user accessing an eduGAIN service. The eduGAIN Attribute Profile however recommends that the following attributes are available for all users:
- Email (e.g. "email@example.com")
- Display/Common name (e.g. "John Doe")
- Affiliation (e.g. "staff", "student")
- Scoped affiliation (e.g. "firstname.lastname@example.org", "email@example.com")
- Principal name (e.g. "firstname.lastname@example.org")
- Persistent/Targeted Identifier (e.g. "uN/7ycVJ9gGKP17HWgZnXPZKlXs=")
- SCHAC home organisation (e.g. "example.org")
- SCHAC home organisation type (e.g. "urn:schac:homeOrganizationType:ch:others")
More Information on the recommended attributes in the eduGAIN Attribute Profile specification.
A service using Shibboleth could use the above attributes by adding the following XML snippet to the attribute-map.xml file where all attributes are defined that the Service Provider can process:
What about Data Privacy?
Most services won't require all those attributes listed above but only a subset of them. They will receive at maximum those attributes that they request. For services it is recommended to request only those attributes that are required for the service to operate. It is also recommended that all eduGAIN services support the GÉANT Data Protection Code of Conduct, a declaration stating that the operator of a service commits to the listed data protection principles. More Information in the GÉANT Data Protection Code of Conduct or on the Code of Conduct Cookbook page.
What attributes are effectively available for eduGAIN users?
An Identity Provider participating in eduGAIN should be able to provide for each of its users the attributes in the above-mentioned list. However, each eduGAIN-enabled organisation can decide for itself which attributes they release for their users who want to access eduGAIN services. It is however recommended to release those attributes in the list above that are requested by services that support the Code of Conduct. Also, like described below, there are some additional attributes that are available for "free" to web applications. These include standard attributes that are available by default to a service as well as attributes that are (upon configuration) made available to a service by extracting them from the SAML2 metadata about an Identity Provider.
What attributes to uniquely identify users? Generally, it is recommended to use the Persistent/Targeted Identifier attribute (eduPersonTargetedID attribute or persistentId NameIdentifier, urn:oid:18.104.22.168.4.1.5922.214.171.124.10) to identify users. Another attribute that could be used to uniquely identify users is the Principal name (eduPersonPrincipalName, urn:oid:126.96.36.199.4.1.59188.8.131.52.6). This attribute is widely implemented but has some disadvantages from a data protection point of view and some organisations are hesitant to release it. The same goes for the email address (urn:oid:0.9.2342.19200300.100.1.3), which also has the disadvantage that it is more likely to change and that it is not ensured that it is unique (one user can have multiple accounts at different Identity Providers with the same email address).
Are there more attributes a service can use?
Yes, every Service Provider requires metadata about the Identity Provider it accepts users from. The metadata contains information that can also be used in form of attributes by Service Provider. The best part of this is, that these "metadata" attributes are almost for free, which means that they don't have to be released by the Identity Provider. Instead, they just have to be read from the SAML metadata. Of course, the data in metadata is fairly generic and the same for all users for that Identity Provider, but still it contains valuable information that could be used by a service.
The Shibboleth Service Provider 2.5 or newer can extract some of these "metadata" attributes directly from the SAML2 metadata. The data that then is available about an Identity Provider typically includes organisation name, organisation URL, organisation logos and (support/technical) contact information. If available for an organisation, this information can be extracted and provided to the web application as attributes.
An example of the attributes that can be made available to a web application by a Shibboleth Service Provider is shown below. The gray attribute names are the default names Shibboleth uses. The red attributes names can be freely configured using the instructions below.
To make a Shibboleth SP 2.5 (or newer) expose attributes read from metadata, please consult the Shibboleth Wiki on the Attribute Extractor features. To make the attributes available to a web application like in the above screenshot, the shibboleth2.xml file would have to include the following metadata extractor