Custom code outbound provisioning

Custom code outbound provisioning uses JavaScript to implement custom provisioning and deprovisioning behavior.

Use this option when the target system requires custom API calls, multi-step provisioning logic, or other behavior that cannot be represented by a standard SCIM 2.0 connection.

Configuration

Enable the provisioning target

Use Enable to control whether the provisioning target is active.

When enabled, Strivacity begins processing accounts that match the configured filter.

⚠️

Enabling a provisioning target can immediately trigger provisioning operations for matching accounts. Validate filters and provisioning logic before enabling the target.

📘

Provisioning targets are created in a disabled state by default.

Actions

The Actions section provides administrative operations for the provisioning target.

Force provision of all accounts

Force provision of all accounts schedules provisioning for all accounts currently matching the provisioning filter.

Use this action to:

  • Re-run provisioning after provisioning logic changes.
  • Re-synchronize accounts with the external system.
  • Recover from external synchronization issues.

Accounts are processed according to the configured provisioning settings and parallel job limits.

⚠️

Force provisioning large identity stores can take significant time depending on the number of matching accounts and the performance of the external system.

Delete outbound provision

Delete outbound provision permanently deletes the outbound provisioning target.

Deleting a target removes its configuration and provisioning logic.

❗

Deleting an outbound provisioning target cannot be undone.

Provisioning triggers

Provisioning operations are triggered automatically based on account lifecycle events and provisioning configuration.

Provisioning can be triggered in several ways:

  • Account creation: new accounts matching the filter are automatically provisioned.
  • Account updates: when a matching account changes, the provisioning target runs again to synchronize updated data.
  • Manual synchronization: administrators can manually trigger provisioning for an individual account using Sync provision now.
  • Force provision all accounts: schedules provisioning for all accounts currently matching the filter.
  • Scheduled re-provisioning: custom provisioning logic can schedule future provisioning runs using retry or polling intervals.

Scheduled re-provisioning can be useful for:

  • Long-running provisioning workflows
  • External mailbox creation
  • Periodic synchronization
  • Retry handling

Deprovisioning

Custom code outbound provisioning can also remove or deactivate accounts in external systems when they are no longer eligible for provisioning.

Accounts can be deprovisioned when:

  • An account is deleted.
  • An account no longer matches the filter.
  • Provisioning logic explicitly returns a deprovision response.

For example, if provisioning applies only to accounts in the Sales department, moving an account to another department can trigger deprovisioning.

Provisioning logic

The Provisioning logic tab defines the custom provisioning behavior for the outbound provisioning target.

📘

The Provisioning logic tab only appears after the initial outbound provisioning configuration is saved.

Provisioning logic is implemented using JavaScript code executed during provisioning and deprovisioning operations.

The editor supports:

  • Custom JavaScript provisioning logic
  • Package dependencies
  • Provisioning response handling

Provisioning reasons

Provisioning logic executes with one of the following reasons:

  • provision
  • deprovision

Provisioning responses

Provisioning logic returns a provisioning response that determines the provisioning result and future execution behavior.

Supported statuses include:

  • provisioned
  • provisionFailed
  • provisionNotNeeded
  • provisionOngoing

Responses can also:

  • Schedule future provisioning runs.
  • Persist metadata between executions.

Updating account attributes

Provisioning logic can update Strivacity account attributes using values returned by external systems.

Example use cases include storing:

  • External account identifiers
  • Mailbox identifiers
  • External reference values

Account provisioning status

Accounts display provisioning status information for each configured custom provisioning target.

Possible statuses include:

  • Pending provisioning
  • Provisioned
  • Provisioning failed
  • Provision not needed
  • Provision ongoing

Enabled provisioning targets for the identity store appear in the account provisioning view, including targets where provisioning is not currently required.

Logs

The Logs tab displays provisioning execution history for the target.

📘

The Logs tab only appears after the initial outbound provisioning configuration is saved.

Logs help administrators:

  • Review provisioning attempts.
  • Troubleshoot failures.
  • Monitor retries.
  • Inspect provisioning status transitions.

Best practices for custom provisioning logic

Start with a narrow filter

Before enabling a provisioning target broadly:

  • Test with a limited account subset.
  • Use dedicated test attributes or organizations.
  • Validate provisioning logic behavior carefully.

Validate external system capacity

Large synchronization jobs can generate high request volume. Configure Maximum parallel jobs appropriately to avoid overloading external systems.

Use retries for long-running operations

Avoid keeping provisioning hooks running for extended periods. Instead:

  • Start the external operation.
  • Return provisionOngoing.
  • Schedule a follow-up run.

Design provisioning logic carefully

Provisioning logic is highly flexible and can support complex workflows, but incorrect implementations can:

  • Trigger duplicate provisioning.
  • Overload downstream systems.
  • Create synchronization inconsistencies.

Custom code limitations

Current limitations include:

  • By default, a maximum of 8 outbound provisioning targets is supported.
  • Large full-account synchronizations may take significant time for very large identity stores.
  • Some retry timing protections are enforced internally and cannot be fully customized.
  • Disabling a provisioning target does not immediately stop already-running provisioning executions.

Did this page help you?