Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# IdentityNow Orgname
$orgName = "myOrgname"
# Get IdentityNow Sources
$IDNSources = Invoke-RestMethod -Method Get -Uri "https://$($orgName)" -Headers @{Authorization = "Basic $($encodedAuth)" ;"content-type" = "application/json"}
write-host -ForegroundColor Green "$($IDNSources.Count) Sources found"
$utime = [int][double]::Parse((Get-Date -UFormat %s))
# Get Source Entitlements
foreach ($idnSource in $IDNSources) {
$entitlementsURI = "https://$($orgName)$($utime)&CISApplicationId=$($idnSource.externalId)"
$sourceEntitlements = Invoke-RestMethod -Method Get -uri $entitlementsURI -Headers @{Authorization = "$($v3Token.token_type) $($v3Token.access_token)" ; "Content-Type" = "application/json"}
Write-Host -ForegroundColor green "$($sourceEntitlements.items.Count) entitlements retured for Source $($idnSource.description)"
$myEntitlement = $sourceEntitlements.items | Select-Object | Where-Object {$_.displayName -like "*SYD*"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.