Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get IdentityNow Identity Account ID for Access Profile Creation. Associated Blog Post https://blog.darrenjrobinson.com/creating-sailpoint-identitynow-access-profiles-via-api-and-powershell/
# IdentityNow Organisation
$org = "myOrgname"
# Search Identities
$searchBaseURI = "https://$($org).api.identitynow.com/cc/api/user/list?"
$utime = [int][double]::Parse((Get-Date -UFormat %s))
$userSearch = "darren.robinson@customer.com.au"
$userSearchEncoded = [System.Web.HttpUtility]::UrlEncode($userSearch)
$searchFiltersEncoded = [System.Web.HttpUtility]::UrlEncode($newRequestFilter)
$sortersRequest = @{"property" ="name"; "direction" ="ASC"} | convertto-json
$sortersRequestEncoded = [System.Web.HttpUtility]::UrlEncode(($sortersRequest))
$userSearchURI = "$($searchBaseURI)_dc=$($utime)&query=$($userSearchEncoded)&filters=$($searchFiltersEncoded)&limit=100&page=1&start=0&sorters=$($sortersRequestEncoded)"
$accessProfileOwner = Invoke-RestMethod -Method Get -Uri $userSearchURI -Headers @{Authorization = "$($v3Token.token_type) $($v3Token.access_token)" }
$profileOwnerID = $accessProfileOwner.items.id
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.