Export User with mailNickname

Felix 20 Reputation points
2023-07-11T09:38:04.8266667+00:00

Dear all,

I would like to export a list of all users with all Properties (most important mailNickname) for a specific tenant with but I'm not able to do it directly in Azure AD. As I'm not an expert in PowerShell is there any possibility to do it with that?

Greetings

Felix

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Michael Smith 2,931 Reputation points Microsoft Employee
    2023-07-11T10:06:08.5233333+00:00

    Hi Felix thank you for reaching out to the community team.

    We can get this information by using the "get-azureaduser" powershell command.

    The following script will create a csv in C:\temp\output.csv. Please change this to the path and filename you want.

    Import-Module AzureAD

    Connect-AzureAD

    Get-AzureADUser -All $true | Export-Csv -Path "C:\temp\output.csv" -NoTypeInformation

    Let me know if this helps by accepting this answer

    Let me know if this helps by accepting this answer

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.