# Bulk update entitlement owner in SailPoint ISC

**URL:** <https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [January 22, 2026, 7:16am UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889 "2026-01-22T07:16:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badebaji](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Badebaji](https://developer.sailpoint.com/discuss/u/Badebaji)\
**Post date:** [January 22, 2026, 7:16am UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/1 "2026-01-22T07:16:03Z")

</div>

Hi Team,

Can some provide us the current working PowerShell script to update entitlement owner for a specific source in bulk using CSV (We are planning to input Entitlmentname,onwermail in CSV)

---

<div class="post-metadata">

**Author:** ![michael\_mckeehan](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@michael\_mckeehan](https://developer.sailpoint.com/discuss/u/michael_mckeehan)\
**Post date:** [January 22, 2026, 8:59am UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/2 "2026-01-22T08:59:31Z")

</div>

Can you not just upload the CSV for the source with the corrected owners? I am not sure why you would need a PS script for this. Unless you were wanting to change the ownership on the target system. If that is the case probably best to do it there instead of through Sailpoint and then run an entitlement aggregation.

> **[Bulk Entitlement Updates - Managing Entitlements - SailPoint Identity Services](https://documentation.sailpoint.com/saas/help/access/entitlements.html#bulk-entitlement-updates)**
>
> Entitlements are the access rights an account has on a source. They're a key part of identity governance and an important way of quantifying access. They can be: | SailPoint Identity Services Documentation

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 22, 2026, 12:53pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/3 "2026-01-22T12:53:30Z")

</div>

Hi @Badebaji ,

Here is the powershell code your looking at

```function
    param (
        [string]$Tenant = "YOUR_TENANT",
        [string]$AccessToken = "YOUR_TOKEN",
        [int]$Limit = 250
    )

    $headers = @{
        "Authorization" = "Bearer $AccessToken"
        "Content-Type" = "application/json"
    }

    $offset = 0
    $allEntitlements = @()
    $hasMore = $true

    while ($hasMore) {
        $url = "https://$Tenant/v3/entitlements?limit=$Limit&offset=$offset"

        try {
            $response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get

            if ($response.items.Count -gt 0) {
                $allEntitlements += $response.items
                $offset += $Limit
            } else {
                $hasMore = $false
            }
        }
        catch {
            Write-Error "Failed to retrieve entitlements: $_"
            break
        }
    }

    return $allEntitlements
}

function Update-EntitlementOwner {
    param (
        [string]$Tenant = "YOUR_TENANT",
        [string]$AccessToken = "YOUR_TOKEN",
        [string]$OwnerId, # The identity ID of the new owner
        [array]$Entitlements
    )

    $headers = @{
        "Authorization" = "Bearer $AccessToken"
        "Content-Type" = "application/json"
    }

    $endpoint = "https://$Tenant/v3/entitlements/bulk"

    # Process in batches of 50
    for ($i = 0; $i -lt $Entitlements.Count; $i += 50) {
        $batch = $Entitlements[$i..([math]::Min($i + 49, $Entitlements.Count - 1))]

        $updatePayload = $batch | ForEach-Object {
            @{
                id = $_.id
                owner = @{
                    id = $OwnerId
                    type = "IDENTITY"
                }
            }
        }

        try {
            $jsonBody = $updatePayload | ConvertTo-Json -Depth 5
            $response = Invoke-RestMethod -Uri $endpoint -Headers $headers -Method Patch -Body $jsonBody
            Write-Host "Updated batch of $($batch.Count) entitlements."
        }
        catch {
            Write-Error "Failed to update batch: $_"
        }
    }
}

# Example usage:
$tenant = "tenant.identitynow.com"
$token = "YOUR_TOKEN"
$newOwnerId = "IDENTITY_ID_OF_NEW_OWNER"

$allEnts = Get-Entitlements -Tenant $tenant -AccessToken $token
Update-EntitlementOwner -Tenant $tenant -AccessToken $token -OwnerId $newOwnerId -Entitlements $allEnts

```

Let me know if you need anything else

Thanks in advance

Avinash Mulpuru

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 22, 2026, 12:57pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/4 "2026-01-22T12:57:58Z")

</div>

Also I suggest to take a look at solution provided peer using UI

---

<div class="post-metadata">

**Author:** ![Badebaji](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Badebaji](https://developer.sailpoint.com/discuss/u/Badebaji)\
**Post date:** [January 22, 2026, 1:50pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/5 "2026-01-22T13:50:47Z")

</div>

Hi Avinash,  
Thanks for sharing the script.  
How can we filter for a specific source?

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 22, 2026, 2:32pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/6 "2026-01-22T14:32:25Z")

</div>

> [@amulpuru](#):
>
> ```auto
> $url = "https://$Tenant/v3/entitlements?filters=source.id eq"sourceid""
> 
> ```

update above with the filter

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 22, 2026, 2:38pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/7 "2026-01-22T14:38:37Z")

</div>

also may be you can pull all the entitlements from that source to csv and

read one by one and one more filter to the URL as

`$url = "https://$Tenant/v3/entitlements?filters=source.id eq `"sourceid`" and name eq `"$($entitlement)`""" `

this will double check and change only entitlements in source your looking at

let me know if you need anything extra

---

<div class="post-metadata">

**Author:** ![Badebaji](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Badebaji](https://developer.sailpoint.com/discuss/u/Badebaji)\
**Post date:** [January 22, 2026, 3:05pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/8 "2026-01-22T15:05:57Z")

</div>

Hi Avinash,

Thanks for the update

Do we need to install any modules prior running this script?

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 22, 2026, 3:12pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/9 "2026-01-22T15:12:22Z")

</div>

no you dont need to install

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [April 19, 2026, 2:57pm UTC](https://developer.sailpoint.com/discuss/t/bulk-update-entitlement-owner-in-sailpoint-isc/193889/11 "2026-04-19T14:57:32Z")

</div>

Closed on April 19, 2026, 2:57pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
