This script will authenticate to your Azure Active Directory and fetch all the user details. Finally, it will save the details to the excel sheet.
Below is the link to the script:
https://gallery.technet.microsoft.com/scriptcenter/Extract-user-list-from-6cb9a93c
Below are the user attributes the script fetches:
1. Display Name
2. Object ID
3. Type
4. Principal Name
5. Role Name
6. Role Description
The excel sheet is saved as: C:\AzureADUserList\AzureADUserList.xlsx
Pre-Requisites: This script needs ‘MSOnline’ and ‘AzureRM’ PowerShell modules
Click here to download my PowerShell scripts for Free !!
One comment