Sync inputs and derived state
Sync supplies facts about a person: their employment status, their hire and end dates, their department, who their manager is. Derived state rules then turn those facts into values Owlie acts on, such as lifecycle state. Sync does not hold those rules and does not set derived values itself. This page covers the part Sync plays. The rules are configured with identities, under Derived state rules.
What Sync contributes
An account job in Identity or Hybrid mode contributes two kinds of input.
Mapped values. Each attribute mapping records a value as that integration's value for an identity attribute. When several sources supply the same attribute, source priority decides which one the identity shows. Derived state rules read that resolved value, never one source's raw value. A lower-priority source can therefore change its value without changing anything a rule sees.
Identity references. A reference mapping, such as Manager, records a link to another identity instead of a text value. It can resolve after the run that first saw it, when the other person's record arrives. See Map a manager.
Sync also records the memberships and assignments it observes as Grants. Those describe access, which policies and reviews use. They are not identity attributes.
From a source value to a lifecycle state
Lifecycle state is the derived value most organizations rely on. Its built-in rules read
employment_status, start_date, hire_date and end_date, so those are the attributes a source
of people needs to map. Lifecycle state and overrides lists the rules
and the values they expect.
A source rarely uses Owlie's vocabulary, so the mapping is where you translate it. For example, the BambooHR connector maps Employment status with:
lookup(status, { "Active": "ACTIVE", "Inactive": "TERMINATED" }, null)
The built-in Terminated rule then matches anyone whose resolved employment_status is
TERMINATED. The mapping decides what the source's words mean, and the rule decides what Owlie does
about it. Check which source values map to TERMINATED before you run a job, because that state
disables the person's Owlie account.
A source that sends only dates still works. The built-in rules move people through Pre-hire, Active,
Leaving and Terminated from start_date or hire_date and end_date alone.
Of the built-in connectors' default mappings:
| Connector | Lifecycle inputs it maps by default |
|---|---|
| BambooHR | employment_status, hire_date, end_date |
| Workday | employment_status, end_date |
| Microsoft Entra ID | start_date, end_date |
You can add or change mappings on any job.
When derived values update
Owlie re-evaluates derived state for an identity when a run creates it or changes one of its resolved attributes. This happens while the run is in progress, so a first sync from an HR source gives each new identity a lifecycle state without a second run. Rules that compare dates are also re-evaluated when a date threshold passes, with no sync involved.
A run that records the same values as before changes nothing on the identity.
Account state is a different thing
The Derive State step on a job's Behavior tab is easy to confuse with derived state rules. They answer different questions:
| Setting | What it describes | Where it is used |
|---|---|---|
| Derive State on a Sync job | Whether one account in a connected system is active, disabled or deleted. | The assigned resource's observed state, in Resource and Hybrid mode. |
| Derived state rules, such as lifecycle state | Where a person is in their employment. | The identity, and the policies and reactions that follow it. |
A disabled account does not make a person Terminated, and a Terminated person's accounts are not disabled by Sync. Removing access after a lifecycle change is the work of policies and Provisioning. See Configure Sync behavior for the account expressions.
Where to change the rules
- Lifecycle state: People lifecycle > States > Rules. See Lifecycle state and overrides.
- Other derived attributes: Directory > Directory Settings > Derived attributes. See Derived state rules.
- Which source wins an attribute: Attribute source priority.