Skip to main content

Handling source changes

A source changes in two ways. A record that is still there reports different values, or a record that was there stops being listed. Sync treats the two very differently. A changed record is applied by any run that reads it. A missing record is only acted on by a full run that saw the whole source, because that is the only run that can tell "gone" from "not listed this time".

When a record changes​

Any run that reads the record, full or incremental, updates the account in Owlie with the attributes it observed. What happens next depends on the job:

  • Identity attributes. In Identity and Hybrid mode with Update identity, the mapped values are recorded again as this integration's values. See how mapped values reach the identity.
  • The account's owner. Nothing changes. A linked account keeps its identity even when the value it was matched on changes. See Account matching.
  • The assigned resource. In Resource and Hybrid mode, Owlie refreshes the observed state and compares it with desired state. See When an account differs from desired state.

A record that is still listed but that Account is deleted when evaluates as deleted has not disappeared. It is an observed lifecycle state, and it is compared with desired state like any other difference.

When a record disappears​

After a full run reads its last page, it cleans up what earlier runs recorded and this run did not see. Cleanup only runs when the run saw the whole source. Each of these makes a run skip it:

The runWhy cleanup is skippedHow you can tell
Is incrementalIt lists changes only.Mode reads INCREMENTAL.
Has a Native filterRecords outside the filter were never requested.The Filtered badge.
Reached its Run limitIt stopped before the end.The Limit reached badge.
Failed to read or process a record (account and entity jobs)A record that failed would look the same as a record that is gone.The Removals skipped badge.
Was a Dry Run or Test RunIt read a sample of up to 10 records.The Dry Run or Test Run badge.
Was canceled or failedIt did not finish reading.The run's status.

A run that skipped cleanup still applied every change it read. The next full run that sees the whole source removes what is missing.

Selecting Fields on the Fetch tab does not stop cleanup of records, because it limits columns and not rows. It does stop cleanup of the memberships that arrive with those records, since the fields that carry them may not have been requested.

On a relationship job, a record that fails only affects its own kind of Grant. The other kinds the job reads are still cleaned up.

What cleanup does​

What was not seenWhat Owlie does
An account or object Owlie only knows from SyncRemoves it from Owlie. For a job in Identity mode, it also clears the attributes it kept from the source record.
An account or object Owlie provisionedKeeps it and marks it as missing from the source. Owlie created it, so one run not listing it is not proof that it is gone.
A record that was added manuallyLeaves it alone. Cleanup never touches manual records.
The assigned resource of an account that was removedRevokes it. The assigned resource of a provisioned account that is only marked missing is not revoked.
A Grant that Sync observedRetires it. If being observed was the only reason the person had that access, Owlie stops intending it.
A Grant whose latest fact is that Owlie added itKeeps it and marks it as missing. Sync may simply not have caught up with the change.
An account parked in Unmatched accounts for removal in the sourceCloses the parked row as resolved.

Sync never deletes an identity, and it never changes a person's Owlie Status. When an HR source stops listing someone, their identity stays. What ends their access is the lifecycle state your rules derive and the policies that follow it. That is why a source of people should report a termination as a status or an end date and not by dropping the record. See Sync inputs and derived state.

A Grant that Owlie still intends and that a full run confirms is missing is added back once by Provisioning. If the system still doesn't list it afterwards, the Grant is marked as failed. See Failed Grants.

When the whole source comes back empty​

A full run that reads zero records, after an earlier successful run read some, fails before cleanup with the message that cleanup was blocked. An empty listing is far more often a broken connection or a changed permission than a system that lost every account. The first run of a new job is allowed to be empty.

If an empty source is a legitimate state for a job, you can turn the check off:

  • Account and entity jobs: on the Fetch tab, under Authoritative cleanup, select Allow an empty authoritative run to clean up observed state.
  • Relationship jobs: on the Behavior tab, under Authoritative cleanup, select Allow an empty authoritative run to clean up observed relationships.

Owlie asks you to confirm with Allow empty cleanup. With the setting on, a full run that reads nothing goes through cleanup and can remove or revoke everything the job has recorded. Leave it off unless you expect the source to become empty and want Owlie to follow.

When an account differs from desired state​

On an account job in Resource or Hybrid mode, each record that matches an assigned resource is compared with that assigned resource's desired state. Handle Differences on the Behavior tab decides what Owlie does with a difference.

Owlie only compares the fields that desired state names. A field that only the connected system holds, such as an ID it assigns or a last sign-in time, is never a difference. Neither is a field the connector accepts but never returns, such as a welcome-email flag. An empty value in desired state and a missing value on the account count as equal, and the order of a list of plain values does not matter.

ActionWhat Owlie does with a difference
Adopt changesTakes the observed value into desired state, so Owlie now intends what the system has.
Flag for reviewRecords the difference on the assigned resource and changes nothing. This is the default.
IgnoreUpdates the observed state only.
Enforce OwlieKeeps desired state and asks Provisioning to make the account match it again.

Enforce Owlie depends on Provisioning being able to write to the system. The Sync run completes as soon as it has asked for the correction, so check the provisioning operation for the outcome.

To treat one field differently, select Overrides and then Add override. Enter the attribute path, such as name.fullName, and choose its action. A path is made of letters, digits and underscores joined by dots. Owlie refuses an override on one of the connector's lifecycle fields, because those are compared through the account's lifecycle state and not as attributes.

An assigned resource that is scheduled and not yet activated is flagged and never adopted or enforced, whatever the action says.

When observed Grants differ from intended Grants​

Entity and relationship jobs observe Grants: memberships, role assignments and similar access. Their Behavior tab has an Assignment policy with two settings.

When no desired grant of that kind exists applies when the system shows a person holding a kind of access that Owlie does not intend for them at all:

OptionWhat Owlie does
Adopt observed stateMakes the observed Grants intended.
Flag for reviewRecords the observation and leaves intended access unchanged.
IgnoreRecords the observation only. This is the default.
Enforce Owlie intentLeaves intended access unchanged and retries removing access Owlie provisioned.

When observed state differs applies when Owlie intends some Grants of that kind for the person and the system shows a different set:

OptionWhat Owlie does
Adopt changesMakes the additional observed Grants intended. It never removes an intended Grant that the system lacks.
Flag for reviewRecords the difference and leaves intended access unchanged.
IgnoreRecords the observation only. This is the default.
Enforce Owlie intentLeaves intended access unchanged, adds intended access that is missing, and retries removing access Owlie provisioned.

Reset to default returns both settings to Ignore.

A few rules apply whatever you choose:

  • Owlie evaluates a kind of Grant only after a full run has listed it completely. Until then the policy does nothing for that kind.
  • Grants are evaluated for accounts that are assigned resources. Observing a Grant never creates an assigned resource.
  • Adoption needs an activated account. Access that is still pending, and access Owlie is in the middle of removing, is flagged and never adopted.
  • Enforcement only removes access Owlie could have granted: a kind it can write to, on a Grant it provisioned or that once had a reason. Membership someone added by hand in the system, which Owlie never managed, is flagged and not removed. Grants added manually in Owlie take no part in any of these actions.
  • If the system keeps restoring access that Owlie removes, Owlie stops after three retries and the Grant needs review.

Field overrides on this tab take account attribute paths, in the same form as the overrides on an account job.

Empty values in the source​

A missing record and an empty field are different things:

  • A mapping whose expression evaluates to null writes nothing for that attribute in that run. The integration's earlier value stays on the identity.
  • A Manager mapping whose source field is empty clears this integration's manager value. An empty manager field is a statement that the person has no manager.
  • Whether an empty value from a higher-priority source lets a lower-priority source's value show is a source priority setting, Skip empty values. See Attribute source priority.