3 [% data.UserId.UserIdentifierValue | xml %]
5 [% IF data.UserId.UserIdentifierType -%]
7 [% data.UserId.UserIdentifierType | xml %]
10 [% IF data.UserId.AgencyId -%]
12 [% data.UserId.AgencyId %]
16 [% IF data.UserOptionalFields -%]
18 [% IF data.UserOptionalFields.NameInformation -%]
20 <PersonalNameInformation>
21 <StructuredPersonalUserName>
22 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
23 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
25 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
26 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
27 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
29 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
30 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
32 [% IF data.UserOptionalFields.NameInformation.Initials -%]
33 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
35 </StructuredPersonalUserName>
36 </PersonalNameInformation>
39 [% IF data.UserOptionalFields.UserAddressInformation -%]
40 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
41 <UserAddressInformation>
42 <UserAddressRoleType>[% element.AddressRoleType %]</UserAddressRoleType>
45 <Line1>[% element.PhysicalAddress.Line1 | xml %]</Line1>
46 [% IF element.PhysicalAddress.Line2 -%]
47 <Line2>[% element.PhysicalAddress.Line2 | xml %]</Line2>
49 [% IF element.PhysicalAddress.Locality -%]
50 <Locality>[% element.PhysicalAddress.Locality | xml %]</Locality>
52 [% IF element.PhysicalAddress.Region -%]
53 <Region>[% element.PhysicalAddress.Region | xml %]</Region>
55 [% IF element.PhysicalAddress.PostalCode -%]
56 <PostalCode>[% element.PhysicalAddress.PostalCode | xml %]</PostalCode>
58 [% IF element.PhysicalAddress.Country -%]
59 <Country>[% element.PhysicalAddress.Country | xml %]</Country>
63 </UserAddressInformation>
66 [% IF data.UserOptionalFields.UserPrivilege -%]
67 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
69 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
70 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
71 [% IF privilege.ValidFromDate -%]
72 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
74 [% IF privilege.ValidToDate -%]
75 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
77 [% IF privilege.UserPrivilegeDescription -%]
78 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
80 [% IF privilege.UserPrivilegeStatus -%]
82 <UserPrivilegeStatusType>
83 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
84 </UserPrivilegeStatusType>
85 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
86 <DateOfUserPrivilegeStatus>
87 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
88 </DateOfUserPrivilegeStatus>
90 </UserPrivilegeStatus>
95 [% IF data.UserOptionalFields.UserLanguage -%]
96 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
97 <UserLanguage>[% language | xml %]</UserLanguage>
100 [% IF data.UserOptionalFields.BlockOrTrap -%]
101 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
103 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
104 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
105 [% IF block.ValidFromDate -%]
106 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
108 [% IF block.ValidToDate -%]
109 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
114 </UserOptionalFields>