Workflows & PaginationNovember 2026

Automating Entitlement Metadata Onboarding: Source-Agnostic Governance Sync in SailPoint ISC

Tyler Rettkowski

Tyler Rettkowski

Founder & SailPoint Expert Ambassador

Executive Summary

When onboarding applications into SailPoint Identity Security Cloud (ISC), one of the biggest architectural bottlenecks before enabling Access Requests or launching Certification Campaigns is populating governance metadata on entitlements. Every entitlement requires a clear description, a primary owner, backup owners, requestable configuration, and compliance tags. In most enterprise target systems—including Active Directory, Azure AD/Entra ID, ServiceNow, custom databases, and Web Services—this metadata already exists directly on the group or entitlement object inside custom schema attributes such as managedBy, backupOwner, customNotes, selfServiceAllowed, or complianceTag. However, ISC does not provide an out-of-the-box mechanism to map raw entitlement schema attributes (entitlement.attributes.*) into top-level governance fields like Owner, Additional Owners, Requestable, or Tags. Even for Description, while customizable connectors like Web Services allow attribute mapping, many out-of-the-box connectors enforce fixed group schemas where the native description field cannot be remapped. (Note that Privileged is intentionally excluded from this gap because ISC already provides native Out-of-the-Box Privileged Criteria mapping directly on the source configuration.)

Leaving this entitlement metadata gap unsolved inflicts immediate operational and compliance damage across the enterprise. Application onboarding grinds to a halt as IAM administrators are forced to export massive entitlement CSVs, massage columns manually in Excel, and re-import them by hand—or maintain brittle, external PowerShell scripts on standalone servers that drift out of sync after the very next entitlement aggregation. When entitlements enter production with blank descriptions and unpopulated owners, self-service Access Requests stall in default admin queues, and Certification Campaigns trigger severe manager approval fatigue as reviewers rubber-stamp cryptic group names they do not recognize. Worse, during SOX, SOC 2, and ISO 27001 audits, unowned and untagged entitlements surface as governance control failures and expose the organization to lingering security vulnerabilities.

Rather than relying on manual CSV reconciliations or external scripting infrastructure, IdentityEXE engineered a repeatable architectural methodology: the Source-Agnostic Entitlement Metadata Onboarding Blueprint. Built 100% natively inside SailPoint ISC Workflows, this two-workflow implementation framework uses a single centralized mappingRules table, OAuth 2.0 Parameter Storage authentication, regex-based dynamic attribute extraction, aggregation-overwrite locking, and recursive 250-item pagination to automatically synchronize raw entitlement schema attributes into top-level ISC governance fields across every connected source in your tenant.


The IdentityEXE Blueprint: Native Two-Workflow Architecture

When we architect this solution for our enterprise clients, we utilize a decoupled, 100% native two-workflow architecture in SailPoint ISC rather than building separate workflows per application or maintaining external script hosts:

  • Source-Agnostic Centralization: Instead of duplicating workflow logic for every connected source, a single Controller workflow dispatches declarative mapping rules across every onboarded application in the tenant.
  • Parameter Storage for Clean Authentication: Rather than cluttering both workflows with extra HTTP steps to generate Bearer tokens or hardcoding Client IDs and Secrets on every step, all HTTP requests use a single Parameter Storage entry configured with OAuth 2.0 Client Credentials.
  • Two-Workflow Execution Split:
    1. Entitlement Metadata Sync - Controller (Scheduled Trigger): Starts with a single Define Variable step at the top of the workflow that holds a JSON array of mapping rules (sourceName, entitlementAttribute, accountAttribute, and destinationAttribute). It loops through each rule, dynamically looks up the Source ID by name, and dispatches the Pagination Worker workflow.
    2. Entitlement Metadata Sync - Pagination Worker (External Trigger): Receives a single mapping rule from the Controller, pages through all entitlements on that source in batches of 250, extracts the source entitlement attribute dynamically, updates the target governance field (Description, Owner, AdditionalOwners, Requestable, or Tags), and recursively calls itself with an incremented offset until every entitlement on the source has been processed.
Entitlement Metadata Sync Controller Workflow CanvasWorkflow 1: Entitlement Metadata Sync - Controller (Scheduled Trigger) iterating through mappingRules and dispatching the worker.
Pagination Worker Workflow - Top HalfWorkflow 2 (Top Half): Pagination Worker External Trigger, Offset Calculation, and Entitlement Page Fetch.
Pagination Worker Workflow - Bottom HalfWorkflow 2 (Bottom Half): Serial Loop Attribute Routing and Recursive Next-Page Self-Invocation.

Because the Pagination Worker routes across all five governance fields inside a single Serial Loop, the canvas has several branches. Below is the architectural flowchart of how the Controller and Pagination Worker interact from start to finish:

Stage 1: Controller Dispatch & Recursive Pagination Topology

The Controller resolves source names and dispatches rules asynchronously to the Pagination Worker, which processes entitlements in 250-item pages and recursively re-invokes itself until completion:

Workflow 1: ControllerScheduled Trigger
1
Define Variable: mappingRules Array

Loads declarative rules (sourceName, entitlementAttribute, accountAttribute, destinationAttribute).

2
Serial Loop → Resolve Source IDGET /sources/v1

Queries filters=name eq "{sourceName}". Skips rule cleanly if source is not found.

3
Dispatch Pagination WorkerPOST External Trigger

Fires asynchronous POST /workflows/v1/execute/external/{workerId} with currentOffset: 0 and limit: 250.

Supports up to 500 rules/controllerAsync Handoff →
Workflow 2: Pagination WorkerExternal Trigger
4
Calculate Next Offset & Fetch PageGET /entitlements/v1

Sets newOffset = currentOffset + 250 and fetches limit=250&offset={currentOffset}. Exits if page is empty.

5
Serial Loop: Extract & Patch250 Items / Batch

Regex-extracts {entitlementAttribute} from attributes.JSON() and routes to the target governance API (Stage 2 below).

6
Recursive Loopback Checklength == 250?

If 250 items returned, calls its own External Trigger with currentOffset = newOffset. If < 250, terminates cleanly.

Self-invoking recursion↻ Loops until page < 250
Stage 2: Inside the Worker Serial Loop — Routing by destinationAttribute

For each entitlement on the current page, the worker regex-extracts {{$.trigger.entitlementAttribute}} from loopInput.attributes.JSON() and routes to one of four API update paths:

1. DescriptionPATCH
/entitlements/v1/:id

Skips if unchanged. Updates /description and sets /manuallyUpdatedFields/DESCRIPTION = true to lock against future aggregation overwrites.

2. RequestablePATCH
/entitlements/v1/:id

Skips if already matching. Converts string "true" or "false" into a real JSON boolean (true / false) on /requestable.

3. TagsPUT
/tagged-objects/v1/ENTITLEMENT/:id

Attaches the extracted compliance or application tag string directly to the entitlement via the Tagged Objects API.

4. Owner / AdditionalOwnersPOST + PATCH
/search/v1 → /entitlements/v1/:id

Resolves attributes.{accountAttribute}:{extractedValue} to an ISC Identity UUID, then patches /owner or /additionalOwners.


Part 1: The Controller Workflow & Mapping Table

Our core engineering methodology structures the data layer to keep all source onboarding configuration in one centralized place. When your team onboards a new application tomorrow, you never modify workflow nodes or deploy new scripts—you simply append a JSON object to the mappingRules array inside the Controller's initial Define Variable step.

Controller Define Variable ConfigurationCentralized mappingRules JSON array inside the Controller's Define Variable step.

Each object in mappingRules uses four declarative properties:

PropertyPurposeExample Value
sourceNameExact display name of the source in ISC"Enterprise ERP - Onboarding Demo"
entitlementAttributeRaw attribute name inside entitlement.attributes holding the source data"managedBy"
accountAttributeIdentity attribute used to resolve an owner string to an ISC Identity (leave "" for non-owner fields)"email"
destinationAttributeTarget governance field to update (Description, Owner, AdditionalOwners, Requestable, Tags)"Owner"

Here is the implementation blueprint's mappingRules array configured to synchronize all five destination governance attributes on an onboarded ERP source:

[
  {
    "sourceName": "Enterprise ERP - Onboarding Demo",
    "entitlementAttribute": "customNotes",
    "accountAttribute": "",
    "destinationAttribute": "Description"
  },
  {
    "sourceName": "Enterprise ERP - Onboarding Demo",
    "entitlementAttribute": "managedBy",
    "accountAttribute": "email",
    "destinationAttribute": "Owner"
  },
  {
    "sourceName": "Enterprise ERP - Onboarding Demo",
    "entitlementAttribute": "backupOwner",
    "accountAttribute": "email",
    "destinationAttribute": "AdditionalOwners"
  },
  {
    "sourceName": "Enterprise ERP - Onboarding Demo",
    "entitlementAttribute": "selfServiceAllowed",
    "accountAttribute": "",
    "destinationAttribute": "Requestable"
  },
  {
    "sourceName": "Enterprise ERP - Onboarding Demo",
    "entitlementAttribute": "complianceTag",
    "accountAttribute": "",
    "destinationAttribute": "Tags"
  }
]

Inside the Controller's Serial Loop, the workflow executes two deterministic actions for each rule:

  1. Resolve Source ID By Name: Runs GET /sources/v1?filters=name eq "{{$.loop.loopInput.sourceName}}" so administrators never have to look up or hardcode internal SailPoint Source UUIDs in the mapping table.
  2. Dispatch Paginated Worker For Rule: Verifies $.hTTPRequest.body.length() > 0 and dispatches an HTTP POST to the Pagination Worker's External Trigger URL with sourceId, entitlementAttribute, accountAttribute, destinationAttribute, currentOffset: 0, and limit: 250.

Part 2: Walking Through the Pagination Worker

Architecting a source-agnostic worker purely inside native ISC workflows requires solving several platform constraints around dynamic JSONPath keys, aggregation overwrites, strict boolean type validation, and pagination limits.

Pagination Worker Serial Loop CanvasDetailed view of the Pagination Worker's Serial Loop routing across all five governance fields.

1. Dynamic Attribute Extraction via Regex String Replacement

In our Controller workflow, each rule passes a different entitlementAttribute name (such as customNotes, managedBy, or complianceTag) into $.trigger.entitlementAttribute.

  • The Platform Quirk: Native ISC Workflows do not support dynamic bracket notation in JSONPath. You cannot write $.loop.loopInput.attributes[$.trigger.entitlementAttribute] to pull a dynamic key out of the entitlement's attributes object.
  • The IdentityEXE Engineering Pattern: Inside the loop's first Define Variable step (Extract Target Entitlement Attribute), we serialize the entitlement's attributes map into a raw JSON string using {{$.loop.loopInput.attributes.JSON()}}. We then apply the sp:transform:replace:string (Replace String) transform using a regex pattern that injects {{$.trigger.entitlementAttribute}} as the key name and captures its value into group $1:
    • Variable A: {{$.loop.loopInput.attributes.JSON()}}
    • Pattern: ^.*"{{$.trigger.entitlementAttribute}}"\s*:\s*"([^"]*)".*$
    • Replacement: $1

We also store the unmodified {{$.loop.loopInput.attributes.JSON()}} string in rawAttributesJson. If the entitlement does not have that attribute on its schema, the regex will not match and extractedValue will equal rawAttributesJson. Our first Define Comparison step (Check If Attribute Is Empty Or Missing) checks if extractedValue == rawAttributesJson OR extractedValue == "". If either is true, it skips the entitlement cleanly.

2. Updating Description Without Aggregation Overwrites

When $.trigger.destinationAttribute equals Description, the workflow first checks if $.loop.loopInput.description already matches $.defineVariable1.extractedValue so we do not waste API calls on unchanged entitlements.

This modular framework ensures that your ISC deployment avoids silent regression on the next entitlement aggregation when patching /entitlements/v1/{{$.loop.loopInput.id}}:

  • The Platform Quirk: If you only patch /description, the next time an Entitlement Aggregation runs on that source, ISC will overwrite your description back to whatever the connector's default description mapping is (often blank).
  • The Fix: Along with /description, we also patch /manuallyUpdatedFields and set "DESCRIPTION": true. This instructs ISC to lock the description field against future aggregation overwrites:
[
  {
    "op": "replace",
    "path": "/description",
    "value": "{{$.defineVariable1.extractedValue}}"
  },
  {
    "op": "replace",
    "path": "/manuallyUpdatedFields",
    "value": {
      "DESCRIPTION": true,
      "DISPLAY_NAME": false
    }
  }
]

3. Converting String Attributes into Real Booleans for Requestable

Entitlement schema attributes often arrive from target systems or CSV feeds as strings ("true" or "false"), whereas the /entitlements/v1/:id JSON Patch API requires /requestable to be a real JSON boolean (true or false).

If you interpolate "value": "{{$.defineVariable1.extractedValue}}" into a JSON Patch body, it sends a string and fails validation. To handle this natively, the worker branches on $.defineVariable1.extractedValue:

  • If extractedValue equals "true" and $.loop.loopInput.requestable is currently false, HTTP Request 2 sends a hardcoded boolean true:
    [{"op": "replace", "path": "/requestable", "value": true}]
  • If extractedValue equals "false" and $.loop.loopInput.requestable is currently true, HTTP Request 3 sends a hardcoded boolean false:
    [{"op": "replace", "path": "/requestable", "value": false}]

4. Applying Compliance & Application Tags

While Description, Owner, AdditionalOwners, and Requestable live on the /entitlements/v1/:id endpoint, tags in ISC are managed through the Tagged Objects API. When destinationAttribute equals Tags, HTTP Request 4 sends a PUT request to /tagged-objects/v1/ENTITLEMENT/{{$.loop.loopInput.id}}:

{
  "objectRef": {
    "id": "{{$.loop.loopInput.id}}",
    "name": "{{$.loop.loopInput.name}}",
    "type": "ENTITLEMENT"
  },
  "tags": [
    "{{$.defineVariable1.extractedValue}}"
  ]
}

5. Resolving Owner and AdditionalOwners via Identity Search

Target systems rarely store an identity's internal SailPoint UUID. Instead, an entitlement attribute like managedBy or backupOwner holds an email address, employee number, or username.

When destinationAttribute is Owner or AdditionalOwners, HTTP Request 5 calls POST /search/v1?limit=1 against the identities index using both $.trigger.accountAttribute and $.defineVariable1.extractedValue:

{
  "indices": [
    "identities"
  ],
  "query": {
    "query": "attributes.{{$.trigger.accountAttribute}}:{{$.defineVariable1.extractedValue}}"
  }
}

If an identity is returned ($.hTTPRequest5.body.length() > 0), the workflow checks whether destinationAttribute is Owner or AdditionalOwners:

  • Primary Owner (HTTP Request 6): Patches /owner with {"id": "{{$.hTTPRequest5.body[0].id}}", "name": "{{$.hTTPRequest5.body[0].name}}", "type": "IDENTITY"}.
  • Additional Owners (HTTP Request 7): Patches /additionalOwners with an array [{"id": "{{$.hTTPRequest5.body[0].id}}", "name": "{{$.hTTPRequest5.body[0].name}}", "type": "IDENTITY"}].

6. Recursive Loopback Pagination

At the start of the worker workflow, Define Variable uses the sp:transform:add:number transform to add 250 to $.trigger.currentOffset and saves it as newOffset.

Once the Serial Loop finishes processing the current page of entitlements, Define Comparison 9 (Check If Full Page Returned) checks if $.hTTPRequest.body.length() == 250. If a full batch of 250 entitlements was returned, HTTP Request 8 (Recall Worker For Next Page) sends a POST request back to the worker's own External Trigger URL with currentOffset: "{{$.defineVariable.newOffset}}". When the final page returns fewer than 250 entitlements, the comparison routes to End Step - Success 15 (Final Page Complete) and terminates the recursion.


Testing & Final Result (Before & After)

To validate all five governance fields end-to-end, we onboarded a Delimited File source named Enterprise ERP - Onboarding Demo and aggregated five entitlements containing raw schema attributes (customNotes, managedBy, backupOwner, selfServiceAllowed, and complianceTag).

Before Running the Workflow (GET /entitlements/v1)

After initial entitlement aggregation, the raw schema attributes exist inside attributes, but the top-level ISC governance fields (description, owner, additionalOwners, and requestable) are unpopulated:

{
  "id": "3c2713dd92ea3c2b8e7716a9fc1fdb8d",
  "name": "ERP General Ledger Auditor",
  "attribute": "groups",
  "value": "GRP-ERP-002",
  "sourceSchemaObjectType": "group",
  "description": null,
  "privileged": false,
  "requestable": false,
  "owner": null,
  "additionalOwners": null,
  "manuallyUpdatedFields": {
    "DESCRIPTION": false,
    "DISPLAY_NAME": false
  },
  "attributes": {
    "name": "ERP_GL_AUDITOR",
    "displayName": "ERP General Ledger Auditor",
    "customNotes": "Read-only audit access to general ledger journals and trial balances",
    "managedBy": "jordan.lee@example.com",
    "backupOwner": "taylor.reed@example.com",
    "selfServiceAllowed": "true",
    "complianceTag": "INTERNAL_AUDIT"
  },
  "source": {
    "id": "6bf29abcd3a446b0abd622107199369a",
    "name": "Enterprise ERP - Onboarding Demo",
    "type": "SOURCE"
  }
}

After Running the Workflow (GET /entitlements/v1 & GET /tagged-objects/v1/ENTITLEMENT/:id)

Once the Controller dispatches the five rules to the Pagination Worker, every entitlement on the source has its description (with manuallyUpdatedFields.DESCRIPTION locked to true), owner, additionalOwners, requestable flag, and compliance tags populated automatically from its underlying attributes:

{
  "id": "3c2713dd92ea3c2b8e7716a9fc1fdb8d",
  "name": "ERP General Ledger Auditor",
  "attribute": "groups",
  "value": "GRP-ERP-002",
  "sourceSchemaObjectType": "group",
  "description": "Read-only audit access to general ledger journals and trial balances",
  "privileged": false,
  "requestable": true,
  "owner": {
    "id": "168f62dc83b44cccacaec9d372415d38",
    "name": "jordan.lee",
    "type": "IDENTITY"
  },
  "additionalOwners": [
    {
      "id": "7de3402637ed4294aa7a9418f33fd2ee",
      "name": "taylor.reed",
      "type": "IDENTITY",
      "ownershipType": "ADDITIONAL"
    }
  ],
  "manuallyUpdatedFields": {
    "DESCRIPTION": true,
    "DISPLAY_NAME": false
  },
  "attributes": {
    "name": "ERP_GL_AUDITOR",
    "displayName": "ERP General Ledger Auditor",
    "customNotes": "Read-only audit access to general ledger journals and trial balances",
    "managedBy": "jordan.lee@example.com",
    "backupOwner": "taylor.reed@example.com",
    "selfServiceAllowed": "true",
    "complianceTag": "INTERNAL_AUDIT"
  },
  "source": {
    "id": "6bf29abcd3a446b0abd622107199369a",
    "name": "Enterprise ERP - Onboarding Demo",
    "type": "SOURCE"
  }
}

And querying GET /tagged-objects/v1/ENTITLEMENT/3c2713dd92ea3c2b8e7716a9fc1fdb8d confirms the compliance tag was attached:

{
  "objectRef": {
    "type": "ENTITLEMENT",
    "id": "3c2713dd92ea3c2b8e7716a9fc1fdb8d",
    "name": "ERP General Ledger Auditor"
  },
  "tags": [
    "INTERNAL_AUDIT"
  ]
}

Considerations, Scale & Platform Limits

When deploying this 100% native workflow architecture in production enterprise tenants, keep the following SailPoint ISC Workflow platform considerations in mind:

  • Paginating at 250 Items per Batch: Because SailPoint's V3/V1 collection endpoints (GET /entitlements/v1) return a maximum of 250 records per request and the Serial Loop (sp:serial:iterator) supports up to 500 items, the Pagination Worker fetches and processes 250 entitlements per execution before recursively calling itself with currentOffset + 250. If a particular source has very large entitlement objects (dozens of lengthy custom schema attributes per entitlement) or if Owner / AdditionalOwners / Tags rules run close to the loop step execution timeout on 250 items, you can lower limit (and the newOffset increment / Define Comparison 9 threshold) from 250 to 100 or 50.
  • Maximum Rules in the Controller (mappingRules Array): Because the Controller workflow uses a Serial Loop to iterate through $.defineVariable.mappingRules, a single Controller workflow supports up to 500 mapping rules (and SailPoint has announced plans to increase loop iteration limits even further). Because the Controller only executes two fast HTTP calls per rule (GET /sources/v1 and an asynchronous fire-and-forget POST to the Pagination Worker), hundreds of rules can be dispatched from a single Controller.
  • Sources with Thousands of Entitlements & Rate Limits:
    • Delta Skipping vs. Unconditional Calls: For Description and Requestable, the GET /entitlements/v1 payload already includes the current description and requestable values. The worker compares the current state against extractedValue and makes zero PATCH calls inside the loop when an entitlement is already up to date. However, GET /entitlements/v1 does not include tags or the owner's email address, meaning the Tags, Owner, and AdditionalOwners branches must execute HTTP requests (PUT /tagged-objects/v1 or POST /search/v1) on each entitlement during the loop.
    • Concurrent Rule Execution: The Controller dispatches one Pagination Worker chain per rule in mappingRules. On a source with thousands of entitlements (for example, 2,500 entitlements = 10 recursive worker pages of 250 per rule), running many rules simultaneously can generate sustained API traffic and potentially trigger 429 Too Many Requests rate limits. For very large sources, schedule heavy Owner and Tags rules during off-peak hours or stagger them across separate schedules.
    • Single-Value Replacement: The regex extractor maps a single attribute string to a single Primary Owner, a single Additional Owner, or a single Tag (PUT), replacing the target field rather than merging comma-separated lists.

Downloads & Implementation Code

Download the complete IdentityEXE Entitlement Metadata Onboarding implementation package below, including both cleansed SailPoint ISC Workflow JSON definitions, the post-sync verification payload, and sample CSV feeds. After importing, update the <TENANT>URL placeholders, assign your Parameter Storage credentials on the HTTP steps, and paste your Pagination Worker's External Trigger URL and Client ID into the Controller and Worker loopback steps:

EntitlementMetadataSync_Controller_Cleansed.jsonController Workflow Definition (7.7 KB)
Download JSON
EntitlementMetadataSync_PaginationWorker_Cleansed.jsonPagination Worker Workflow Definition (29.7 KB)
Download JSON
Sample_Entitlements_Feed_Cleansed.csvSample Entitlements CSV Feed (1.0 KB)
Download CSV
Sample_Accounts_Feed_Cleansed.csvSample Accounts CSV Feed (0.3 KB)
Download CSV
Entitlements_After_Sync_Cleansed.jsonSample Post-Sync Entitlement API Response (1.5 KB)
Download JSON

Conclusion

By combining a central mappingRules variable table with regex string extraction, Parameter Storage authentication, aggregation-overwrite locking, and recursive External Trigger pagination, enterprise IAM teams can eliminate manual CSV imports and automate entitlement metadata population across every source using 100% native SailPoint ISC Workflows.

A stalled identity governance rollout burns capital and stalls organizational momentum.

If your team is hitting configuration walls or struggling with complex entitlement governance and source onboarding automation, stop guessing. Book a targeted SailPoint Architecture Review directly with our engineering team to map out a clear path forward.

Book Your SailPoint Architecture Review
Workflows & Pagination

Related Engineering Posts

All Posts