[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

365 Directory Sync Configuration

Hi,

When Active directory synchronises with the 365 cloud, it includes the user with the Microsoft default email address:

me@blah.onmicrosoft.com

How can I have it to synchronise with me@mydomain.com instead? (knowing that if I create a user in the cloud, the primary address is user@mydomain.com)

Thanks
0
defrey
Asked:
defrey
1 Solution
 
Vasil Michev (MVP)Commented:
Synced accounts are named based on the value of the on-prem UPN. Make sure the domain that you want to use is added as UPN suffix in your AD, and the UPN to your on-prem users is updated accordingly. In the cloud, make sure you have verified the domain.com, otherwise you will end up with @domain.onmicrosoft.com.

If you do not have UPN configured, the tool will use the samAccountName attribute instead. No domain part there, so you will end up with @domain.onmicrosoft.com.

Changing the UPN on prem after the initial sync should update the UPN in the cloud as well, though sometimes I've seen this fail. In any case, you can always update it using the WAAD module for PowerShell and the following cmdlet:

Set-MsolUserPrincipalName -UserPrincipalName user@domain.com -NewUserPrincipalName new@domain.com

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now