Files
docs/Scripts/Powershell/Azure/Check Email Aliases.md
2024-01-23 20:29:47 -07:00

615 B

!!! note This command assumes you have performed the steps necessary to Connect to Azure AD.

The uppercase SMTP address is the primary address, while lowercase smtp are aliases. You can find the value in active directory in "User > Attribute Editor > proxyAddresses".

Get-AzureADUser -ObjectId "user@domain.com" | Select -Property ProxyAddresses

!!! example "Example Output" powershell smtp:alias@domain.com smtp:alias@domain.onmicrosoft.com SMTP:primaryaddress@domain.com