0
votes

I've set up Azure AD Connect on my server and synced users to Azure AD.

Now I have several users which are duplicated - for example

Name: John Doe
User principal name: john.doe@company.com
Directory synced: No

Name: John Doe
User principal name: john.doe3317@company.onmicrosoft.com
Directory synced: Yes

It seams like the latter is synced but with wrong "user principal name".

Question 1: Can I just delete both accounts and let it sync again?

Question 2: If I delete a user in Azure AD, will it delete the user in Office 365 and all their mails?

2

2 Answers

0
votes

When UserPrincipalName (UPN)/Alternate Login ID suffix is not verified with the Azure AD Tenant, then Azure Active Directory replaces the UPN suffixes with the default domain name "onmicrosoft.com".

When you create a user John.doe@company.com it will only have same UPN if the domain is verified in Azure AD which can be done by following. Login to Azure > Azure AD > Customer domain name > add custom domain and make it primary. The custom domain MX record needs to be verified.