Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get IdentityNow Identity Account ID for Access Profile Creation. Associated Blog Post
# IdentityNow Organisation
$org = "myOrgname"
# Search Identities
$searchBaseURI = "https://$($org)"
$utime = [int][double]::Parse((Get-Date -UFormat %s))
$userSearch = ""
$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 = $
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.