<AttrMaps>
<!-- SCIM 1.0 -->
<AttrMap id="scim-user-1.0-resource" classname="org.openptk.config.mapper.ConsumerAttrMap">
<Attributes>
<Attribute id="id">
<Mode id="ignore"/>
</Attribute>
<Attribute id="meta">
<Mode id="ignore"/>
</Attribute>
<!-- SCIM Core Schema : Schemas -->
<Attribute id="schemas" required="true" multivalued="true">
<Mode id="outbound">
<Literal value="urn:scim:schemas:core:1.0"/>
</Mode>
</Attribute>
<!-- SCIM User Schema : Singular Attributes -->
<Attribute id="userName" required="true" mapto="uniqueId">
<Mode id="both"/>
</Attribute>
<Attribute id="externalId">
<Mode id="ignore"/>
</Attribute>
<Attribute id="name">
<Mode id="inbound">
<SubAttributes>
<SubAttribute id="formatted" mode="ignore"/>
<SubAttribute id="familyName" mapto="lastname" required="true"/>
<SubAttribute id="givenName" mapto="firstname" required="true"/>
<SubAttribute id="middleName"/>
<SubAttribute id="honorificPrefix" mapto="title"/>
<SubAttribute id="honorificSuffix" mode="ignore"/>
</SubAttributes>
</Mode>
<Mode id="outbound">
<SubAttributes>
<SubAttribute id="formatted">
<Literal value="${firstname} ${lastname}"/>
</SubAttribute>
<SubAttribute id="familyName" mapto="lastname" required="true"/>
<SubAttribute id="givenName" mapto="firstname" required="true"/>
<SubAttribute id="middleName"/>
<SubAttribute id="honorificPrefix" mapto="title"/>
</SubAttributes>
</Mode>
</Attribute>
<Attribute id="displayName">
<Mode id="outbound">
<Literal value="${lastname}, ${firstname}"/>
</Mode>
</Attribute>
<Attribute id="nickName">
<Mode id="ignore"/>
</Attribute>
<Attribute id="userType">
<Mode id="ignore"/>
</Attribute>
<Attribute id="preferredLanguage">
<Mode id="ignore"/>
</Attribute>
<Attribute id="locale">
<Mode id="ignore"/>
</Attribute>
<Attribute id="timezone">
<Mode id="ignore"/>
</Attribute>
<Attribute id="active" type="boolean">
<Mode id="ignore"/>
</Attribute>
<!-- SCIM User Schema : Plural Attributes -->
<Attribute id="emails" multivalued="true">
<Mode id="both">
<Data id="email" undefined="value">
<Datum id="type"/>
<Datum id="value"/>
<Datum id="primary" type="boolean"/>
<Match id="work_email" datum="type" value="work" mapto="email"/>
</Data>
</Mode>
</Attribute>
<Attribute id="phoneNumbers" multivalued="true">
<Mode id="both">
<Data id="phoneNumber" undefined="value">
<Datum id="type"/>
<Datum id="value"/>
<Datum id="primary" type="boolean"/>
<Match id="work_phone" datum="type" value="work" mapto="phone"/>
</Data>
</Mode>
</Attribute>
<Attribute id="ims" multivalued="true">
<Mode id="ignore"/>
</Attribute>
<Attribute id="photos" multivalued="true">
<Mode id="ignore"/>
</Attribute>
<Attribute id="addresses" multivalued="true">
<Mode id="both">
<Data id="address">
<Datum id="type"/>
<Datum id="primary" type="boolean"/>
<Datum id="formatted" mode="ignore"/>
<Datum id="streetAddress"/>
<Datum id="locality"/>
<Datum id="region"/>
<Datum id="postalCode"/>
<Datum id="country"/>
<Match id="work_address" datum="type" value="work" mapfrom="streetAddress" mapto="address"/>
<Match id="work_city" datum="type" value="work" mapfrom="locality" mapto="city"/>
<Match id="work_state" datum="type" value="work" mapfrom="region" mapto="state"/>
<Match id="work_postalcode" datum="type" value="work" mapfrom="postalCode" mapto="postalcode"/>
<Match id="work_country" datum="type" value="work" mapfrom="country" mapto="country"/>
</Data>
</Mode>
</Attribute>
<Attribute id="groups" multivalued="true">
<Mode id="ignore"/>
</Attribute>
<Attribute id="entitlements" multivalued="true">
<Mode id="ignore"/>
</Attribute>
<Attribute id="roles" multivalued="true">
<Mode id="ignore"/>
</Attribute>
</Attributes>
</AttrMap>
</AttrMaps>