How Sync works
Sync reads a connected system and records what it finds in Owlie: the accounts that exist there, the groups, roles and other objects access points at, and who holds what. For account records it can go further and create or update identities, or attach an account to an identity as an assigned resource. Sync only reads. Writing to a connected system is Provisioning.
Sync jobs come from the connector
Each integration's connector declares the kinds of record it can list. Owlie turns each one into a Sync job of one of three types:
| Job type | What it reads | What it writes in Owlie |
|---|---|---|
| Account | The records that represent people's accounts, such as users or employees. | The account, plus identities, assigned resources or both, depending on the job's Behavior. |
| Entity | Other objects, such as groups, roles, teams and projects. | The object and its attributes, so Grants have something to point at. |
| Relationship | Memberships and assignments the connector has to fetch separately, one source object at a time. | Observed Grants between accounts and those objects. |
Many connectors return memberships together with the account or entity records. Those arrive through the account or entity job, and no relationship job exists for them.
To create an integration's jobs, open the integration, select the Sync tab and select Create All Jobs. The tab lists every entity the connector declares and shows No sync job configured beside any that has none. Jobs created this way start with no schedule, shown as manual-only. You can also add a single account or entity job from Admin > Integrations > Sync with Create sync job. An entity can have one job.
A relationship run uses the accounts and objects that the same integration's other jobs have already read, so run those jobs first. A scheduled relationship run stays blocked until each job it depends on has completed at least once.
What happens to one record
Every run works through the same stages. The figure follows one account record, for a fictional employee named Priya, through an account job.
- 01The connector reads the sourceIn the listingThe connector lists every record of the job's entity, one page at a time. Priya's new record is in the listing.
- 02Owlie stores what it observed
- 03Owlie finds whose account it is
- 04Owlie writes the identity
- 05Owlie updates the assigned resource
- 06The run finishes
In order, an account run does this:
- Read. The connector lists records one page at a time. A full run lists everything. An incremental run lists only what the connector reports as changed since the job's stored marker.
- Store the observation. Owlie stores each record as an account, keyed by the connector's identifier fields, with the attributes it observed. A record with no usable identifier fails and the run continues with the next one.
- Find whose account it is. On a job that manages a resource, Owlie first looks for an assigned resource it already tracks with that identifier. Otherwise it follows the account's existing link to an identity. Only an account with neither goes through the job's matching rules. See Account matching.
- Write the identity. In Identity and Hybrid mode, Owlie evaluates the job's attribute mappings and either creates an identity or records the mapped values on the matched one. An account that matches nobody is created, parked or ignored, as the job's Behavior says.
- Update the assigned resource. In Resource and Hybrid mode, Owlie adopts a matched account as an assigned resource, or compares an existing one with its desired state. See Configure Sync behavior.
- Finish the run. After the last page, Owlie resolves manager references that were waiting for another record. A full run then cleans up what it did not see, if it saw the whole source. See Handling source changes.
Entity and relationship runs do stages 1, 2 and 6 only. They have no identity or assigned resource step. Instead, once a full run has listed a kind of Grant completely, the job's assignment policy decides what happens to observed Grants that differ from what Owlie intends.
Identities that a run creates or changes are picked up by derived state rules, policies and lifecycle reactions as the run goes, without waiting for the next run.
Observed and intended access
Sync records what a system reports: this account exists, it is active, it is a member of this group. Owlie keeps that observed state apart from the state it intends, which comes from requests, policies and assignments.
When the two differ, the job's Behavior decides what Sync does: accept the observed state as intended, flag the difference, ignore it, or keep Owlie's intent and ask Provisioning to correct the system. Sync itself never writes to the connected system. A run can complete while the correction it asked for is still in progress, so check the provisioning operation for that result.
Full and incremental runs
A full run is the only kind that can tell that something is gone, because it lists everything. An incremental run is lighter and keeps changes fresh between full runs, and it never removes anything. Only some connectors support incremental runs. See Full and incremental Sync, schedules, and manual runs.