Impossible to get Outlook emails as Azure email address is same as on-premise Ad email address

AlphonseSossou-5262 0 Reputation points
2025-06-03T00:10:53.3266667+00:00

I have created the azure user as with same email address as my AD domain email address.

After I ran AD connect I cannot access my emails. My email account is empty like in the case of new user.

What to do make the user created in Azure a full on-premise user will the AD users rights

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,047 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Akpesiri Ogbebor 2,055 Reputation points
    2025-06-03T09:30:47.4333333+00:00

    Hello @Alphonse sossou

    Thanks for contacting MS Q&A. I will be able to help you with resolving your issues.

    This issue is happening because you manually created a cloud-only Azure AD user using the same email address that already exists on-premises, and then ran Azure AD Connect. Now there's a mismatch — Azure AD sees it as a different object because the source anchor (immutable ID) doesn’t match, so it doesn’t link the cloud account to the on-premises AD account.

    Kindly follow the documentation below for assistance.

    https://techcommunity.microsoft.com/discussions/microsoft-entra/how-to-hard-match-a-user-in-office-365-/3766388

    https://wiki.winadmins.io/en/active-directory/matching-immutable-id

    If this answers your query, do click Accept Answer and Yes if this answer helpful. And, if you have any further queries, do let us know.

    Siri


  2. SrideviM 5,470 Reputation points Microsoft External Staff Moderator
    2025-06-09T01:22:18.8633333+00:00

    Hello Alphonse Sossou,

    Line 3 ($immutableID) is not a mistake. It's simply used to display the value calculated in step 2, allowing you to view or verify the Base64-encoded ImmutableId before using it.

    You will use the value from step 2 in the next command to set the ImmutableId.

    Since the MSOnline PowerShell module is deprecated, it’s expected that cmdlets may now return errors, even for Global Admins.

    Alternatively, you can make use of Microsoft Graph PowerShell SDK to achieve the same.

    Install the Microsoft Graph PowerShell SDK:

    Install-Module -Name Microsoft.Graph -Scope CurrentUser -AllowClobber -Force
    

    Now, authenticate to Microsoft Graph with the following command, signing in with your Global Admin account:

    Connect-MgGraph -Scopes "User.ReadWrite.All"."Directory.AccessAsUser.All"
    

    Set the ImmutableId and verify it using below commands:

    Update-MgUser -UserId ******@domain.com -OnPremisesImmutableId "xcxxxxxxxxxx"
    Get-MgUser -UserId ******@domain.com -Property UserPrincipalName,OnPremisesImmutableId | Select-Object UserPrincipalName,OnPremisesImmutableId
    

    Enter image description here

    For more information, refer to the installation guide and the retirement announcement.

    Once this is done, the user should sync correctly with Azure AD, and Outlook should connect to the existing mailbox as expected. Hope this helps!


    If this answers your query, do click Accept Answer and Yes for was this answer helpful, which may help members with similar questions.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.