how to update b2b user upn/mail ?

Rahul 236 Reputation points
2020-03-04T13:23:09.523+00:00

Hi Team,

Recently I'm facing an issue with some b2b users who's email and upn got changed in their home tenant/directory. Example aaa.bbb@xyz .com now changed to bbb.aaa@xyz .com

Now how do I correct the changes in our b2b tenant. We can't edit the upn/mail directly.

And also these are b2b users their upn is in different format something like this aaa.bbb_xyz.com#EXT#@infra@protcap.com.br .com

How to fix this issue any advise here ? ( Don't want to send new invite on this changed id bbb.aaa@xyz .com )

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,633 questions
0 comments No comments
{count} votes

Accepted answer
  1. FrankHu-MSFT 976 Reputation points
    2020-03-05T00:02:28.34+00:00

    @Rahul unfortunately you'll need to send out invites to fix this issue.

    If you'd like to see if a support agent can help you with changing the names on the backend please submit a support ticket per the docs here : https://learn.microsoft.com/en-us/azure/active-directory/b2b/get-support

    However, I don't believe they'll be able to help you in this scenario.

    If you're interested in submitting feedback to the product please put it here : https://feedback.azure.com/forums/169401-azure-active-directory and if there's enough communal support then the product team will look into putting this on the roadmap accordingly.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,306 Reputation points
    2020-03-05T06:16:18.437+00:00

    @Rahul Although there are ways (as mentioned below) to change UPN and Email address but that might not help you in this scenario and as Frank mentioned, you'll need to send out invites to fix this issue.

    Workaround: If possible, instead of changing the email address, suggestion would be to add bbb.aaa@xyz .com as alias to aaa.bbb@xyz .com to avoid this situation.

    To change UPN, User name and MailNickname:

     1. Connect-AzureAD  
     2. Get-AzureADUser -ObjectId <ObjectID of the User> | fl   
     3. Set-AzureADUser -ObjectId <ObjectID of the User> -UserPrincipalName bbb.aaa_xyz.com#EXT#@b2b.com   
     4. Set-AzureADUser -ObjectId <ObjectID of the User> -MailNickName bbb.aaa_xyz.com#EXT#  
    

    To change Email address, you would need to use Exchange Online PowerShell Module. This can't be done by using Azure AD Module or Graph API.

     1. Install-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline   
     2. Set-MailUser -Identity bbb.aaa_xyz.com#EXT# -PrimarySmtpAddress bbb.aaa@xyz.com  
    

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    4 people found this answer helpful.