diff --git a/Scripts/Powershell/Azure/Check Email Aliases.md b/Scripts/Powershell/Azure/Check Email Aliases.md new file mode 100644 index 0000000..c7c6233 --- /dev/null +++ b/Scripts/Powershell/Azure/Check Email Aliases.md @@ -0,0 +1,11 @@ +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"**. +``` powershell +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 + ``` \ No newline at end of file