Where can I find the access level for all users to the resources in Azure AD

Sharma, Manu (2022) 26 Reputation points
2022-11-02T18:36:33.05+00:00

Where can I find the access level for all users to the resources in Azure AD and where does it get stored

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

Accepted answer
  1. Manu Philip 17,021 Reputation points MVP
    2022-11-02T19:01:01.487+00:00

    I can provide you a PowerShell script, which was tested by other users before for the similar question. Hope, it helps you too
    Here is the step-by-step procedure

    1. Copy the foillowing script to a text file Get-AzResourceGroup| foreach-object {
      $ResourceGroupName = $_.ResourceGroupName
      Get-AzRoleAssignment | Select-Object DisplayName,RoleAssignmentID,@{Name = "ResourceGroup Name"; Expression = { (Get-AzResourceGroup $ResourceGroupName).ResourceGroupName}} ,Scope,RoleDefinitionName,@{name="SubscriptionName";expression = {$Name}},ObjectType | Sort-Object DisplayName
      }-OutVariable azusers
      $azusers | Export-CSV UserList.csv -NoTypeInformation -Encoding UTF8
    2. Save the file as ps1 file under any folder (example C:\script\azuser.ps1)
    3. Connect Azure account in PowerShell (az login)
    4. Run the script (example PS C:\script> .\azuser.ps1
    5. If it runs well, the result which you are looking for will be saved in the same folder with name UserList.csv

    Let's know how it goes


    --please don't forget to upvote and Accept as answer if the reply is helpful--


1 additional answer

Sort by: Most helpful
  1. Sharma, Manu (2022) 26 Reputation points
    2022-11-03T22:33:19.007+00:00

    Thanks a lot Manuphilip..you are a rockstar :-)

    1 person found this answer helpful.