365 Directory Sync Configuration

Posted on 2014-08-23
Last Modified: 2014-08-23

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

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

Question by:defrey
    1 Comment
    LVL 37

    Accepted Solution

    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, otherwise you will end up with

    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

    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 -NewUserPrincipalName

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Being able to change email signatures is made really simple with email signature software and services.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now