I am trying to generate a report that contains all assigned access profiles to user on specific source, is there any way to achieve this via search Queary or do we need to leverage PowerShell scripts, please provide your insights on this
@vkashat Thanks Vincent, I tried this search Queary earlier, but we are trying to get associated access profiles along with Access Profile ID, this id will be used as input file for access request we submit via PowerShell script.
You don’t need to do two API call to get the Access Profile associated to user. When you use the search endpoint and search specific identity, all of it’s access is listed in response in
access[]
array. From there , you can filter the data of type: ACCESS_PROFILE.
if ($includeCSV -eq $true) {
$dataTable | Export-Csv -Path $csvFilePath -NoTypeInformation
Write-Output “Access profiles have been saved to $csvFilePath”
}
What exactly are you looking for? From you initial question,you asked to generate a report that contains all assigned access profiles. From that search query, you will get all user info including all the access they have. You can use filter in your code to filter “ACCESS_PROFILE” that you are looking for.
The search response has all the of Access Profile. If you look into the access array and respective Access Profile, each specific Access Profile have all the information such as id, name, source,description, displayName,owner.