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:
Below are the user attributes the script fetches:
1. Display Name
2. Object ID
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 !!