Outbound Mapping

Last modified 23 Apr 2021 10:24 +02:00

Outbound mapping define how the data are synchronized from the user to accounts or, in other words, when the data out of midPoint. See Synchronization Examples for a generic explanation of the synchronization mechanism.

synchronization outbound

Outbound expressions are defined in the schema handling section of resource definition. The expression definition is inside attribute definition which is inside account type definition:

<resource>
  ...
  <schemaHandling>
    ...
    <accountType>
      ...
      <attribute>
        ...
        <outbound>
          <initial>true</initial>
          <expression>
            <code>
              concat('uid=', $c:user/c:name, ',ou=people,dc=example,dc=com')
            </code>
          </expression>
        </outbound>
        ...
      </attribute>
      ...
    </accountType>
    ...
  </schemaHandling>
  ...
</resource>

Variables

Outbound expressions usually take variables from the system variables provided by midPoint when the expression is evaluated. Following table summarizes the variables available to outbound expressions.

Variable name Type Description

user
root node

UserType

User associated with the account. This is the most common source of data for outbound expressions.

iteration

integer

Numeric value describing the current iteration. It starts with 0 and increments on every iteration. Iterations are used to find unique values for an account, to resolve naming conflicts, etc.

iterationToken

string

String value describing the current iteration. It is usually suffix that is appended to the username or a similar "extension" of the value. It should have different value for every iteration. The actual value is determined by the iteration settings.