How provisioning and reconciliation work
Provisioning is how Owlie makes a connected system match a decision. An approved request, a policy, an administrator or a review decision says what access a person should have. Owlie turns that into a provisioning operation, works out the account and Grants the person should end up with, and writes the difference to the connected system. Reconciliation is the comparison behind that write, and it runs again whenever Owlie's intent or its knowledge of the account changes.
Three answers to "does this person have access?"
Owlie keeps three separate records for every assigned resource. They often disagree for a while, and most provisioning questions come down to which one you are looking at.
| Record | What it answers | What changes it |
|---|---|---|
| Intended | What account and Grants should this person have? | Requests, policies, administrators, reviews, expiry of timed access |
| Completed | What has Owlie applied to the connected system? | A provisioning operation that finishes its writes |
| Observed | What did the connected system list the last time Owlie read it? | Sync, and reads Owlie makes before it writes |
Approving a request changes only what is intended. A fulfilled operation means Owlie's writes ran, and Owlie shows the access from its own write straight away. Only a sync read confirms that the connected system lists the access, and only a sync read can tell Owlie that someone changed the account outside Owlie.
Try the events below in any order. The figure follows one Grant: Maya Chen's membership of the platform team in GitHub.
- Waiting
- Received
- Resolving
- Fulfilling
- Fulfilled
- Failed
- Cancelled
Maya Chen has a GitHub account. Nobody has asked for the platform team yet.
What Owlie does nextNothing is intended, so there is nothing to provision or reconcile.
The figure in words: approval creates an operation and changes intended access only. When the operation is fulfilled, the Grant is completed but not yet observed. A sync that lists the Grant brings all three into agreement. If someone then removes the Grant in GitHub, Owlie doesn't know until a complete sync no longer lists it. What happens next depends on the sync job's assignment policy. When the identity is terminated, Owlie stops intending the access and creates a Revoke operation, and the Grant reads Removal pending until that operation removes it.
What a provisioning operation is
Every change Owlie makes to an account is one provisioning operation with one action:
| Action | What it asks for |
|---|---|
| Provision | Create and initialize the account for a resource |
| Revoke | Disable or delete the account when access ends |
| Enable | Restore a suspended account |
| Disable | Suspend an account without removing it |
| Update Attributes | Apply changed attribute values to an existing account |
| Add Grants | Add Grants to an existing account |
| Remove Grants | Remove Grants from an existing account |
| Set Grants | Replace the account's Grants of one kind |
Owlie creates operations for approved requests, administrator actions on an identity's Resources tab, policy changes, review decisions, sync, the end of timed access, and attribute changes on mappings you keep updated. You don't create them directly. Every operation is listed under Integrations > Operations, with where it came from.
Operation statuses
| Status | Meaning |
|---|---|
| Waiting | The operation is scheduled for a later start, such as access that begins next week. Nothing is intended or written yet. |
| Received | Owlie accepted the operation and it is queued. |
| Resolving | Owlie is working out the intended account state and Grants from the resource's provisioning profile and the reasons for the access. |
| Fulfilling | The intended state is recorded and Owlie is applying it. An operation also stays here while it waits for a person or a timer. |
| Fulfilled | Every change the operation could make has run. |
| Failed | The operation stopped. Owlie keeps the intent and waits for you to retry. |
| Cancelled | The operation was withdrawn before it changed the intended state. |
An operation that changes nothing, because the account already matches, goes straight from Resolving to Fulfilled.
Open an operation to see its four phases:
- resolve: work out the intended state. Expressions in the provisioning profile are evaluated here, and a Grant that can never be written is refused here.
- observe: read the account from the connected system when Owlie's stored copy is missing, stale or partial. This is how Owlie avoids creating an account that already exists.
- apply: run the steps that close the gap, such as creating the account, setting attributes and writing each Grant. Each step is recorded with its result.
- finalize: record what was applied and report the outcome to whatever started the operation.
Owlie writes only the difference. If the connected system already holds a Grant, Owlie doesn't write it again.
Operations that wait
A Fulfilling operation isn't always busy. It also stays Fulfilling while:
- a person completes a manual fulfillment ticket. The operation shows "Waiting on manual fulfillment".
- a Wait or Wait for callback step in the profile's Before hooks holds it. See Hooks and delayed operations.
- Owlie retries after a temporary error, or paces its calls to the connected system's rate limits.
- an invited person hasn't accepted yet, or the account has to be created outside Owlie. See Account activation.
When an operation fails
Owlie retries temporary errors on its own, with a growing delay, while the operation stays Fulfilling. It stops when the attempts run out or when the error can't be fixed by trying again, such as a rejected credential or an invalid value. The operation is then Failed.
A failed operation doesn't undo the decision. The person is still meant to have the access, the assigned resource stays on the identity with a Failed badge, and nothing is retried until you select Retry. Saving a configuration change doesn't retry anything on its own. See Investigate a failed provisioning operation.
One refusal doesn't always fail the whole operation. When the connected system refuses a single Grant, Owlie records the failure on that Grant and completes the rest. See Retry or remove a failed Grant.
Cancelling
You can cancel an operation only before it changes the intended state. Cancel is offered on an operation while it is Received or Resolving. A scheduled start that is still Waiting is cancelled by removing the scheduled access. Once an operation is Fulfilling, cancelling is refused, because Owlie may already have written to the connected system. Reverse it with another change instead, such as revoking the access.
How newer changes replace older ones
Each assigned resource has a desired version and an applied version. Every operation that changes the intended account or its Grants raises the desired version, and the applied version catches up when the changes have run. The assigned resource's side panel shows them as Desired version and Applied version.
Several operations can target one account at short intervals: a request adds a Grant while a policy removes another. Owlie resolves them in the order it accepted them and reconciles the account toward the latest intended state. As a result, the account ends up matching the newest decision even if an older operation was still in progress.
Where sync fits
Provisioning and sync write to the same record of accounts and Grants. Provisioning records what Owlie wrote. Sync records what the connected system lists. When they disagree, the sync job's assignment policy decides what happens:
- Enforce Owlie keeps the intended state and starts a reconciliation to add missing access or to remove access Owlie provisioned.
- Adopt changes accepts access the connected system added as intended access. It never removes intended Grants that are missing.
- Flag for review and Ignore leave the intended state alone and start nothing.
You choose the policy on the sync job's Behavior tab. See Configure sync behavior.
These rules apply whatever the policy:
- Owlie acts only on a complete read. A sync that didn't finish listing a kind of Grant proves nothing about a Grant it didn't see, so Owlie neither repairs nor removes anything from it.
- Enforcement removes only access Owlie could have granted: a Grant of a kind the resource manages, that Owlie provisioned or that once had a reason in Owlie. Access that was only ever created in the connected system is flagged, not removed.
- An addition that is still pending and a removal that hasn't finished are never adopted or enforced from a sync read.
- When a complete sync no longer lists a Grant Owlie added, Owlie adds it again once. If it is still missing after the integration's listing delay, the Grant fails on its own. See When the connected system stops listing access Owlie added.
- When a sync lists a Grant Owlie removed, the Grant shows as live access again. With Enforce Owlie, Owlie retries the removal, and stops after three retries that the connected system keeps undoing.
Why access stays or goes
Owlie removes access when its last reason ends, not when one request or policy ends. If a request expires while a policy still grants the same Grant, the Grant stays. Revoking an account that a policy still grants leaves the account in place. Why someone has access explains reasons, and Lifecycle and removal behavior covers what Owlie does to the account when the last reason goes.