0
votes

When I attempt to Set-AzureADUser I can't find any information on setting the Email parameter, I only have the option to set -othermails. Is there anyway to call the email parameter? I'd rather not run through the GUI for over 350 users.

https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureaduser?view=azureadps-2.0 There are no parameters for -email.

1

1 Answers

0
votes

I believe this post will answer your question.

...the username (known as "UserPrincipalName", in the Azure AD Graph API and Azure AD PowerShell module) is actually an email address that can receive emails

...You can create more user-friendly usernames by adding and verifying a custom domain name to you Azure AD directory: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-add-domain. Once you've done this, you can create users that have usernames such as user@contoso.com (assuming contoso.com is the domain you added).