Forum Discussion
jcasqueiro
Oct 13, 2023Brass Contributor
How to export list of all users with all the attributes
Hi, Does anyone have a PS script to export all the tenant users with all their attributes (including extended)? Thanks/Brgds joao PS: The Get-All_Students_and_Teachers.ps1 doesn't do the job b...
RichardE15
Dec 23, 2024Copper Contributor
Hi Joao! 👋 To export all tenant users with their attributes, including extended ones, PowerShell is your go-to. For Azure AD, you can use the Get-AzureADUser cmdlet with a loop to fetch extended attributes and export them to a CSV. Alternatively, with Microsoft Graph, the Get-MgUser -All -Property * cmdlet provides a more comprehensive solution. Don’t forget to ensure you have the necessary permissions to access and export user data.