Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The user template object definition could looks look like this one:

Code Block
xml
xml
<objectTemplate oid="c0c010c0-d34d-b33f-f00d-777222222333">
        <name>User Template CSV sync</name>

        <description>
            Alternative User Template Object.
            This object is used when creating a new account, to set it up as needed.
        </description>

		<mapping>
			<description>
                Property mapping.
                Defines how properties of user object are set up.
                This specific definition sets a full name as a concatenation
                of givenName and familyName.
            </description>
			<strength>weak</strength>
			<source>
				<path>$user/givenName</path>
			</source>
			<source>
				<path>$user/familyName</path>
			</source>
			<expression>
				<script>
					<language>http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</language>
					<code>
						givenName + ' ' + familyName
					</code>
				</script>
			</expression>
			<target>
				<path>$user/fullName</path>
			</target>
		</mapping>

    </objectTemplate>

...