#### Retrieval of AAI attributes

You can retrieve AAI attributes by using the syntax
hasAttribute("[AttrName]","[string]") or
isInAttribute("[AttrName]","[substring]").
[AttrName] is the attribute name you can find in the following table and also in the Specification of the AAI attributes (pdf file) (column LDAP names) on page 5.
[string] is the value of the AAI attribute with the name [AttrName] .
[substring] is any part of [string] .
You find the link to a list of possible attribute values in the Specification of the AAI attributes (pdf file) appendix, as of page 20.
Example: John Doe

Variable [AttrName] | Example value [string] | Description
--- | --- | ---
swissEduPersonUniqueID | 845938727494@unizh.ch | Unambiguous personal identification number
surname | Doe | Last name
givenName | John | First name
mail | john.doe@unizh.ch | Preferred e-mail address
swissEduPersonHomeOrganization | unizh.ch | Home organisation/university
swissEduPersonHomeOrganizationType | university | Type of home organisation
eduPersonAffiliation | student | Affiliation
swissEduPersonStudyBranch1 | 4 | Field of study 1st classification
swissEduPersonStudyBranch2 | 42 (=Natural sciences) | Field of study 2nd classification
swissEduPersonStudyBranch3 | 4600 (=Chemistry) | Field of study 3rd classification
swissEduPersonStudyLevel | 15 | Description of study progress
eduPersonEntitlement | http://vam.unizh.ch/surgery | Access right to resource
employeeNumber | 01-234-567 | Registration number (only for students at Zurich university)
organizationalUnit | 1 | Unity of home organisation e.g. faculty (only for employees)

For the example mentioned above John Doe (see table) the following retrievals would respectively produce:

isInAttribute("surname","oe") | true
hasAttribute("swissEduPersonStudyBranch3","4600") | true
hasAttribute("swissEduPersonStudyBranch3","1200") | false
isInAttribute("eduPersonEntitlement","http://vam.unizh.ch") | true
isInAttribute("eduPersonEntitlement","http://vam.unizh.ch/ophthalmology") | false
hasAttribute("employeeNumber","01-234-567") | true

Back | Close window