<Attributes xmlns="urn:mace:shibboleth:2.0:attribute-map"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <!--
        SWITCHaai federation attribute map configuration file
        Based on SWITCHaai Attribute Specification 1.5 from 2010-05-01
        Last update: 2012-09-27

        This file is the backwards compatible version that still uses the
        deprecated aliases feature. Please note that in the future attribute
        aliases are not supported anymore by the Service Provider. Therefore,
        applications should be adaptated to use only the attribute names which
        are used as "id" of an attribute definition below.

    -->

    <!-- Core attributes -->

    <!-- Unique ID -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonUniqueID" id="uniqueID" aliases="Shib-SwissEP-UniqueID"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1" id="uniqueID" aliases="Shib-SwissEP-UniqueID"/>

    <!-- A persistent id attribute that supports personalized anonymous access. -->

    <!-- First, the deprecated version, decoded as a scoped string: -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonTargetedID" id="targeted-id">
        <AttributeDecoder xsi:type="ScopedAttributeDecoder"/>
        <!-- <AttributeDecoder xsi:type="NameIDFromScopedAttributeDecoder" formatter="$NameQualifier!$SPNameQualifier!$Name" defaultQualifiers="true"/> -->
    </Attribute>

    <!-- Second, an alternate decoder that will turn the deprecated form into the newer form. -->
    <!--
    <Attribute name="urn:mace:dir:attribute-def:eduPersonTargetedID" id="persistent-id">
        <AttributeDecoder xsi:type="NameIDFromScopedAttributeDecoder" formatter="$NameQualifier!$SPNameQualifier!$Name" defaultQualifiers="true"/>
    </Attribute>
    -->

    <!-- Third, the new version (note the OID-style name): -->
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" id="persistent-id">
        <AttributeDecoder xsi:type="NameIDAttributeDecoder" formatter="$NameQualifier!$SPNameQualifier!$Name" defaultQualifiers="true"/>
    </Attribute>

    <!-- Fourth, the SAML 2.0 NameID Format: -->
    <Attribute name="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" id="persistent-id">
        <AttributeDecoder xsi:type="NameIDAttributeDecoder" formatter="$NameQualifier!$SPNameQualifier!$Name" defaultQualifiers="true"/>
    </Attribute>

    <!-- Surname -->
    <Attribute name="urn:mace:dir:attribute-def:sn" id="surname" aliases="Shib-Person-surname"/>
    <Attribute name="urn:oid:2.5.4.4" id="surname" aliases="Shib-Person-surname"/>

    <!-- Given name -->
    <Attribute name="urn:mace:dir:attribute-def:givenName" id="givenName" aliases="Shib-InetOrgPerson-givenName"/>
    <Attribute name="urn:oid:2.5.4.42" id="givenName" aliases="Shib-InetOrgPerson-givenName"/>

    <!-- E-mail address -->
    <Attribute name="urn:mace:dir:attribute-def:mail" id="mail" aliases="Shib-InetOrgPerson-mail"/>
    <Attribute name="urn:oid:0.9.2342.19200300.100.1.3" id="mail" aliases="Shib-InetOrgPerson-mail"/>

    <!-- Home organization -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonHomeOrganization" id="homeOrganization" aliases="Shib-SwissEP-HomeOrganization"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.4" id="homeOrganization" aliases="Shib-SwissEP-HomeOrganization"/>

    <!-- Home organization type -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonHomeOrganizationType" id="homeOrganizationType" aliases="Shib-SwissEP-HomeOrganizationType">
        <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
    </Attribute>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.5" id="homeOrganizationType" aliases="Shib-SwissEP-HomeOrganizationType">
        <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
    </Attribute>

    <!-- Affiliation -->
    <!-- to maintain backwards compatibility in SWITCHaai, the id is
         "affiliation" instead of "unscoped-affiliation"
    -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation" id="affiliation" aliases="Shib-EP-Affiliation"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1" id="affiliation" aliases="Shib-EP-Affiliation"/>

    <!-- Other attributes -->

    <!-- User ID -->
    <Attribute name="urn:mace:dir:attribute-def:uid" id="uid" aliases="Shib-Person-uid"/>
    <Attribute name="urn:oid:0.9.2342.19200300.100.1.1" id="uid" aliases="Shib-Person-uid"/>

    <!-- Matriculation number -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonMatriculationNumber" id="matriculationNumber" aliases="Shib-SwissEP-MatriculationNumber"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.11" id="matriculationNumber" aliases="Shib-SwissEP-MatriculationNumber"/>

    <!-- Employee number -->
    <Attribute name="urn:mace:dir:attribute-def:employeeNumber" id="employeeNumber" aliases="Shib-InetOrgPerson-employeeNumber"/>
    <Attribute name="urn:oid:2.16.840.1.113730.3.1.3" id="employeeNumber" aliases="Shib-InetOrgPerson-employeeNumber"/>

    <!-- Card UID -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonCardUID" id="cardUID" aliases="Shib-SwissEP-CardUID"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.12" id="cardUID" aliases="Shib-SwissEP-CardUID"/>

    <!-- Nick name -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonNickname" id="nickname"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.2" id="nickname"/>

    <!-- Date of birth -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonDateOfBirth" id="dateOfBirth" aliases="Shib-SwissEP-DateOfBirth"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.2" id="dateOfBirth" aliases="Shib-SwissEP-DateOfBirth"/>

    <!-- Gender -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonGender" id="gender" aliases="Shib-SwissEP-Gender"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.3" id="gender" aliases="Shib-SwissEP-Gender"/>

    <!-- Preferred Language -->
    <Attribute name="urn:mace:dir:attribute-def:preferredLanguage" id="preferredLanguage" aliases="Shib-InetOrgPerson-preferredLanguage"/>
    <Attribute name="urn:oid:2.16.840.1.113730.3.1.39" id="preferredLanguage" aliases="Shib-InetOrgPerson-preferredLanguage"/>

    <!-- Home postal address -->
    <Attribute name="urn:mace:dir:attribute-def:homePostalAddress" id="homePostalAddress" aliases="Shib-InetOrgPerson-homePostalAddress"/>
    <Attribute name="urn:oid:0.9.2342.19200300.100.1.39" id="homePostalAddress" aliases="Shib-InetOrgPerson-homePostalAddress"/>

    <!-- Business postal address -->
    <Attribute name="urn:mace:dir:attribute-def:postalAddress" id="postalAddress" aliases="Shib-OrgPerson-postalAddress"/>
    <Attribute name="urn:oid:2.5.4.16" id="postalAddress" aliases="Shib-OrgPerson-postalAddress"/>

    <!-- Private phone number -->
    <Attribute name="urn:mace:dir:attribute-def:homePhone" id="homePhone" aliases="Shib-InetOrgPerson-homePhone"/>
    <Attribute name="urn:oid:0.9.2342.19200300.100.1.20" id="homePhone" aliases="Shib-InetOrgPerson-homePhone"/>

    <!-- Business phone number -->
    <Attribute name="urn:mace:dir:attribute-def:telephoneNumber" id="telephoneNumber" aliases="Shib-Person-telephoneNumber"/>
    <Attribute name="urn:oid:2.5.4.20" id="telephoneNumber" aliases="Shib-Person-telephoneNumber"/>

    <!-- Mobile phone number -->
    <Attribute name="urn:mace:dir:attribute-def:mobile" id="mobile" aliases="Shib-InetOrgPerson-mobile"/>
    <Attribute name="urn:oid:0.9.2342.19200300.100.1.41" id="mobile" aliases="Shib-InetOrgPerson-mobile"/>

    <!-- Scoped Affiliation -->
    <!-- to maintain backwards compatibility in SWITCHaai, the id is
         "scoped-affiliation" instead of "affiliation"
    -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonScopedAffiliation" id="scoped-affiliation">
        <AttributeDecoder xsi:type="ScopedAttributeDecoder" caseSensitive="false"/>
    </Attribute>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9" id="scoped-affiliation">
        <AttributeDecoder xsi:type="ScopedAttributeDecoder" caseSensitive="false"/>
    </Attribute>

    <!-- Study branch 1 -->
    <!-- @Deprecated id: mapped as an alias -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonStudyBranch1" id="studyBranch1" aliases="Shib-SwissEP-StudyBranch1 Shib-SwissEP-swissEduPersonStudyBranch1"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.6" id="studyBranch1" aliases="Shib-SwissEP-StudyBranch1 Shib-SwissEP-swissEduPersonStudyBranch1"/>

    <!-- Study branch 2 -->
    <!-- @Deprecated id: mapped as an alias -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonStudyBranch2" id="studyBranch2" aliases="Shib-SwissEP-StudyBranch2 Shib-SwissEP-swissEduPersonStudyBranch2"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.7" id="studyBranch2" aliases="Shib-SwissEP-StudyBranch2 Shib-SwissEP-swissEduPersonStudyBranch2"/>

    <!-- Study branch 3 -->
    <!-- @Deprecated id: mapped as an alias -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonStudyBranch3" id="studyBranch3" aliases="Shib-SwissEP-StudyBranch3 Shib-SwissEP-swissEduPersonStudyBranch3"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.8" id="studyBranch3" aliases="Shib-SwissEP-StudyBranch3 Shib-SwissEP-swissEduPersonStudyBranch3"/>

    <!-- Study level -->
    <!-- @Deprecated id: mapped as an alias -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonStudyLevel" id="studyLevel" aliases="Shib-SwissEP-StudyLevel Shib-SwissEP-swissEduPersonStudyLevel"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.9" id="studyLevel" aliases="Shib-SwissEP-StudyLevel Shib-SwissEP-swissEduPersonStudyLevel"/>

    <!-- Staff category -->
    <!-- @Deprecated id: mapped as an alias -->
    <Attribute name="urn:mace:switch.ch:attribute-def:swissEduPersonStaffCategory" id="staffCategory" aliases="Shib-SwissEP-StaffCategory Shib-SwissEP-swissEduPersonStaffCategory"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.10" id="staffCategory" aliases="Shib-SwissEP-StaffCategory Shib-SwissEP-swissEduPersonStaffCategory"/>

    <!-- Organization path -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonOrgDN" id="org-dn" aliases="Shib-EP-OrgDN orgDN"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.3" id="org-dn" aliases="Shib-EP-OrgDN orgDN"/>

    <!-- Organizational unit path -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonOrgUnitDN" id="orgunit-dn" aliases="Shib-EP-OrgUnitDN orgUnitDN"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.4" id="orgunit-dn" aliases="Shib-EP-OrgUnitDN orgUnitDN"/>

    <!-- Primary organizational unit -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonPrimaryOrgUnitDN" id="primary-orgunit-dn"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.8" id="primary-orgunit-dn"/>

    <!-- Entitlement -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonEntitlement" id="entitlement" aliases="Shib-EP-Entitlement"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" id="entitlement" aliases="Shib-EP-Entitlement"/>


    <!-- Other Standardized/International attributes -->

    <!-- Organizational unit -->
    <Attribute name="urn:mace:dir:attribute-def:ou" id="ou" aliases="Shib-Person-ou"/>
    <Attribute name="urn:oid:2.5.4.11" id="ou" aliases="Shib-Person-ou"/>

    <!-- Assurance level -->
    <Attribute name="urn:mace:dir:attribute-def:eduPersonAssurance" id="assurance" aliases="Shib-EP-Assurance"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.11" id="assurance" aliases="Shib-EP-Assurance"/>

    <!-- Primary group ID -->
    <Attribute name="urn:mace:switch.ch:attribute-def:primaryGroupID" id="primaryGroupID" aliases="Shib-primaryGroupID"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.7165.2.1.15" id="primaryGroupID" aliases="Shib-primaryGroupID"/>

    <!-- Member of -->
    <Attribute name="urn:mace:dir:attribute-def:isMemberOf" id="isMemberOf" aliases="Shib-eduMember-isMemberOf"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.5.1.1" id="isMemberOf" aliases="Shib-eduMember-isMemberOf"/>

    <!-- Display Name -->
    <Attribute name="urn:mace:dir:attribute-def:displayName" id="displayName" aliases="Shib-EP-DisplayName"/>
    <Attribute name="urn:oid:2.16.840.1.113730.3.1.241" id="displayName" aliases="Shib-EP-DisplayName"/>

    <!-- Common Name -->
    <Attribute name="urn:mace:dir:attribute-def:cn" id="cn" aliases="Shib-EP-CommonName"/>
    <Attribute name="urn:oid:2.5.4.3" id="cn" aliases="Shib-EP-CommonName"/>

    <!-- SCHAC Home Organisation -->
    <Attribute name="urn:mace:terena.org:schac:homeOrganization" id="schacHomeOrganization" aliases="Shib-SCHAC-HomeOrganization"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.25178.1.2.9" id="schacHomeOrganization" aliases="Shib-SCHAC-HomeOrganization"/>

    <!-- SCHAC Home Organisation Type -->
    <Attribute name="urn:mace:terena.org:schac:homeOrganizationType" id="schacHomeOrganizationType" aliases="Shib-SCHAC-HomeOrganizationType"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.25178.1.2.10" id="schacHomeOrganizationType" aliases="Shib-SCHAC-HomeOrganizationType"/>

    <!-- Principal name (Deprecated) -->
    <!--
    <Attribute name="urn:mace:dir:attribute-def:eduPersonPrincipalName" id="principalName" aliases="eppn"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" id="principalName" aliases="eppn"/>
    -->

    <!-- Primary affiliation (Deprecated) -->
    <!--
    <Attribute name="urn:mace:dir:attribute-def:eduPersonPrimaryAffiliation" id="primary-affiliation">
        <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
    </Attribute>
    <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.5" id="primary-affiliation">
        <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
    </Attribute>
    -->

    <!-- Bilaterally/Locally defined attributes -->

    <!-- UniBE Authorization attribute -->
    <!--
    <Attribute name="urn:mace:switch.ch:attribute-def:UniBEapplAuthorisation" id="uniBEApplAuthorisation" aliases="Shib-Custom-uniBeApplAuthorisation"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1000" id="uniBEApplAuthorisation" aliases="Shib-Custom-uniBeApplAuthorisation"/>
    -->

    <!-- AAA usage limit -->
    <!--
    <Attribute name="urn:mace:switch.ch:aaitest:aaa.unibe.ch:attribute-def:UsageLimit" id="unibeUsageLimit" aliases="Shib-Custom-unibeUsageLimit"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1001" id="unibeUsageLimit" aliases="Shib-Custom-unibeUsageLimit"/>
    -->

    <!-- UniL group membership -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:unil.ch:unilMemberOf" id="unilMemberOf" aliases="Shib-Custom-unilMemberOf"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1003" id="unilMemberOf" aliases="Shib-Custom-unilMemberOf"/>
    -->

    <!-- UniGE Organization unit code -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:unige.ch:attribute-def:unigeChOuCode" id="unigeOuCode" aliases="Shib-Custom-unigeOuCode"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1004" id="unigeOuCode" aliases="Shib-Custom-unigeOuCode"/>
    -->

    <!-- UZH SAP user ID -->
    <!--
    <Attribute name="urn:mace:unizh.ch:uzhSapUserId" id="uzhSAPUserId" aliases="Shib-Custom-uzhSAPUserId"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.11817.1.1.2.13" id="uzhSAPUserId" aliases="Shib-Custom-uzhSAPUserId"/>
    -->

    <!-- UniL faculte principale -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:unil.ch:unilFacultePrincipale" id="unilFacultePrincipale" aliases="Shib-Custom-unilFacultePrincipale"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1006" id="unilFacultePrincipale" aliases="Shib-Custom-unilFacultePrincipale"/>
    -->

    <!-- FHNW IDPerson (Evento) -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:fhnw.ch:attribute-def:fhnwIDPerson" id="fhnwIDPerson" aliases="Shib-Custom-fhnwIDPerson"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1009" id="fhnwIDPerson" aliases="Shib-Custom-fhnwIDPerson"/>
    -->

    <!-- Uni Basel specific roles -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:unibas.ch:unibasChRoles" id="unibasChRoles" aliases="Shib-Custom-unibasChRoles"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.22865.10.1.1.19" id="unibasChRoles" aliases="Shib-Custom-unibasChRoles"/>
    -->

    <!-- FHNW SAP UserID -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:fhnw.ch:attribute-def:fhnwSapUserID" id="fhnwSapUserID" aliases="Shib-Custom-fhnwSapUserID"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1010" id="fhnwSapUserID" aliases="Shib-Custom-fhnwSapUserID"/>
    -->

    <!-- FHNW SAP additional user information -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:fhnw.ch:attribute-def:fhnwSapUserInfo" id="fhnwSapUserInfo" aliases="Shib-Custom-fhnwSapUserInfo"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1011" id="fhnwSapUserInfo" aliases="Shib-Custom-fhnwSapUserInfo"/>
    -->

    <!-- FHNW user principal name (ActiveDirectory) -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:fhnw.ch:attribute-def:fhnwUPN" id="fhnwUPN" aliases="Shib-Custom-fhnwUPN"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1012" id="fhnwUPN" aliases="Shib-Custom-fhnwUPN"/>
    -->

    <!-- FFHS user type -->
    <!--
    <Attribute name="urn:mace:switch.ch:attribute-def:userType" id="UserType" aliases="Shib-Custom-UserType"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1022" id="UserType" aliases="Shib-Custom-UserType"/>
    -->

    <!-- FHNW Organisationseinheit aus Metadirectory -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:fhnw.ch:attribute-def:fhnwOeID" id="fhnwOeID" aliases="Shib-Custom-fhnwOeID"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1013" id="fhnwOeID" aliases="Shib-Custom-fhnwOeID"/>
    -->

    <!-- UZH SAP staff user ID -->
    <!--
    <Attribute name="urn:mace:unizh.ch:uzhSapUserIdStaff" id="uzhSAPUserIdStaff" aliases="Shib-Custom-UzhSAPUserIdStaff"/>
    <Attribute name="urn:oid:1.3.6.1.4.1.11817.1.1.2.27" id="uzhSAPUserIdStaff" aliases="Shib-Custom-UzhSAPUserIdStaff"/>
    -->

    <!-- Affiliation Private Library Customers -->
    <!--
    <Attribute name="urn:mace:switch.ch:SWITCHaai:libraries.ch:attribute-def:slpAffiliation" id="swissLibraryPersonAffiliation" aliases="Shib-Custom-swissLibraryPersonAffiliation"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1023" id="swissLibraryPersonAffiliation" aliases="Shib-Custom-swissLibraryPersonAffiliation"/>
    -->

    <!-- Fernuni Imap Password -->
    <!--
    <Attribute name="urn:mace:switch.ch:attribute-def:fschImapPW" id="fschImapPW" aliases="Shib-Custom-fschImapPW"/>
    <Attribute name="urn:oid:2.16.756.1.2.5.1.1.1024" id="fschImapPW" aliases="Shib-Custom-fschImapPW"/>
    -->

</Attributes>
