How to export assigned users from an Azure Enterprise Application

Platt, Cory R 20 Reputation points

I followed the steps in this article:

However it only shows me the first 100 or so users for each application. I have far more than that in some applications, and am trying to figure out how to get a list of all of them in a particular application. Is there anything you can do in powershell to provide a full list of everyone in a particular app? Here is the exact command I was running (minus the actual object ID.

Get-AzureADServiceAppRoleAssignment -ObjectId Object ID Here | Select-Object PrincipalDisplayName, PrincipalType | Export-Csv -Path C:\temp\test3.csv 

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,850 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 142.7K Reputation points MVP

    Add the -all switch:

    Migrate to the PS MgGraph as well :)

    $Assignees = Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId [objectIdServicePrincipal] -all
    0 comments No comments

0 additional answers

Sort by: Most helpful