Attribute mappings with OXL
An attribute mapping tells an account job which source value becomes which identity attribute. Each mapping pairs an Owlie attribute with an OXL expression that Owlie evaluates against the source record. Mappings run in Identity and Hybrid mode. A Resource mode job writes no identity attributes.
These are inbound mappings. Mappings that write Owlie values to a connected system belong to Provisioning.
Open the mapping editor
Open the job from Admin > Integrations > Sync, select Behavior, and select Edit on the
Attribute Mapping step. The Identity attribute mappings dialog lists every attribute in
your directory's catalog, grouped by section, including custom attributes. An attribute is mapped
when its Source expression has a value. Editing needs the sync.modify permission, and
nothing is stored until you select Save on the job.
| Column | What it holds |
|---|---|
| Owlie attribute | The identity attribute that receives the value. Custom attributes show their key, such as custom.badge_id. |
| Source expression | The OXL expression evaluated against each source record. |
| In create | Use this mapping when the job creates an identity. On by default. |
| In update | Use this mapping when the job updates a matched identity. On by default. |
Search attributes filters the list, and Mapped only hides attributes without a mapping. On a wide window the source record's fields appear beside the table. Hover a field to see which mappings read it, or drag an unmapped row's handle onto a field to map it. In any window, the expression editor's Pick menu inserts a field for you. To remove a mapping, select Clear mapping on its row.
Built-in connectors come with mappings for their account job, so a new job usually starts with the common attributes mapped. Review them rather than starting from an empty list.
Write source expressions
An expression reads fields of the source record by name and can combine them:
| To do this | Write |
|---|---|
| Copy a field | jobTitle |
| Read a nested field | name.givenName |
| Read the first item of a list | organizations[0].department |
| Fall back when a field is empty | mail || userPrincipalName |
| Build a value from several fields | (preferredName || firstName) + ' ' + lastName |
| Translate the source's vocabulary | lookup(status, { "Active": "ACTIVE", "Inactive": "TERMINATED" }, null) |
| Keep part of a value | isEmpty(hireDate) ? null : substring(hireDate, 0, 10) |
For an attribute that only accepts listed values, such as Employment status, the editor offers
a Map values mode that builds the lookup expression from the source's values to the allowed
ones.
Open the full expression editor on a row to run the expression against a sample record. The note under the table tells you which record that is: a record from the job's most recent run, or a made-up record built from the connector's schema when the job has not run yet. A result from a made-up record shows that the expression is valid, not what your data will produce.
Map a person's work address to Email. A personal address belongs in a secondary email attribute, so that a new hire's private address never becomes the address Owlie treats as theirs.
How mapped values reach the identity
Sync does not overwrite identity attributes. Each mapped value is recorded as that integration's value for the attribute, and Owlie then chooses which source's value the identity shows. That is why two integrations can map the same attribute, and why a manual correction is not undone by the next run. Attribute source priority explains how the winner is chosen and how to change the order.
A few rules follow from this:
- A run reports a record as Updated only when a value the identity shows changed. A value that loses to a higher-priority source is still recorded, and the record reads as unchanged.
- An expression that evaluates to
nullwrites nothing for that attribute in that run. The integration's earlier value stays as it was. Manager mappings are the exception: see the worked example. - When Owlie creates an identity and no mapping supplies Email, a matching rule on Email supplies it from the rule's source expression.
Values Owlie can't use
One unusable value does not block the rest of the record. A mapped value can be rejected by its attribute, for example a value outside the attribute's choice list or of the wrong type. When that happens, Owlie skips that one attribute, writes every other value, and carries on with matching and assigned resources as usual.
To find skipped values, open the run from the job's Runs tab, select the record, and read Identity Result, which lists skipped and invalid attributes with the reason for each. Fix the expression or the source data, because Owlie does not correct values for you.
When you save, Owlie refuses a mapping whose attribute is not in your catalog. If an attribute is deleted after a mapping was saved, the mapping appears under Removed attributes in the editor until you replace or clear it.
Map a manager
Manager holds a reference to another identity, so it can't take a plain expression. The source record does not contain an Owlie identity. It contains the manager's identifier in the source's own terms, such as an employee number. A reference mapping tells Owlie which other record that identifier points at, and Owlie then uses the identity that record is linked to.
This example uses BambooHR, where each employee record has an eeid and the record of a person
with a manager also has supervisorEid, the manager's eeid:
| Record | eeid | supervisorEid |
|---|---|---|
| Dana Okafor | 1042 | 1007 |
| Luis Ferrand | 1007 |
The BambooHR connector ships this mapping already, so on a BambooHR job you only need to check it. The steps are the same for any source.
- Open the job's Behavior tab, select Edit on Attribute Mapping, and find Manager under Organization.
- In the source field menu, select
supervisorEid. Fields the connector marks as references are listed first with a ref tag. - Check Match by. For
supervisorEidit readseeidwith recommended by connector, because the connector declares that this field holds another employee'seeid. To match on a different field, select Change and pick the field, or External ID to match on the record's identifier. - Leave In create and In update on, close the dialog, and select Save.
- Select Run sync.
During the run, Owlie reads 1007 from Dana's record, finds the record whose eeid is 1007,
follows it to Luis's identity, and records Luis as Dana's manager. Dana's profile then shows Luis
under Manager.
Records do not have to arrive in a helpful order:
- The manager appears later in the same run. Owlie holds the reference and resolves it after the last page, before the run finishes.
- The manager is not in this run at all, for example in an incremental run that only lists Dana. Owlie keeps the reference and fills it in as soon as the manager's record is linked to an identity, even if that happens in a later run. You do not need to sync Dana again.
- Two records share the identifier. Owlie does not guess. The reference stays unresolved.
- The source field is empty. Owlie takes that to mean the person has no manager and clears this integration's manager value.
- The identifier points at the person's own record. Owlie drops it.
The run's summary shows a References line when any reference had to wait: Deferred counts references held until the end of the run, and Unresolved counts those still waiting when it finished. Unresolved references need no action unless the manager never arrives.
A resolved manager stays in place if the manager's account is later unlinked or removed from the source. It changes when the source reports a different manager.
The reference preview
Under Match by, the editor previews where the sample record's reference leads:
- Resolves to a name: the referenced record is linked to that identity.
- Would resolve when … is linked to an Owlie identity: the record was found, and its account has no identity yet.
- No matching record for the sample value: nothing in Owlie has that identifier.
- Live preview is available for “External ID” matches only: the preview can only look records up by their identifier. When Match by is any other field, as in this example, the preview can't check it. The run itself resolves the reference normally.
The preview needs a record from a previous run. Before the first run it reads Run a sync to preview resolution against a real record.
Use an expression as the source
To compute the manager's identifier, choose Custom expression... in the source field menu and enter an OXL expression. A computed source has no connector recommendation, so you must choose Match by yourself. The job can't be saved without it.
Map attributes on entity jobs
Entity jobs, which read objects such as groups and roles, have a Mappings tab instead. Under
Entity attribute mapping, each row pairs a Graph attribute name of your choosing with a
Source expression. Owlie stores the results as the object's attributes. An expression that
evaluates to null, or that fails for a record, is skipped for that record.
Relationship jobs have no mappings.