From 49af9e9001029b002ce3de75498d4389a3d595e6 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 23 Jan 2024 20:28:03 -0700 Subject: [PATCH] Add Scripts/Powershell/Azure/Check Email Aliases.md --- Scripts/Powershell/Azure/Check Email Aliases.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Scripts/Powershell/Azure/Check Email Aliases.md 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