Set primary guest domain

Auer Lukas 1 Reputation point
2021-11-14T20:21:29.98+00:00

Hey,

Wanted to ask if you guys know a way to change the default domain for guest users in Azure AD (e.g. instead of prefix#EXT#@Company portal .onmicrosoft.com something like prefix@BIGuest .contoso.com)?

I think it would just look a little less cryptic. :)

Looking forward to your responses.

Kind regards,
Lukas

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,470 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,371 Reputation points Microsoft Employee
    2021-11-15T21:50:01.603+00:00

    anonymous user
    Thank you for your post!

    Based off your issue, I found another thread with a similar ask - How to change domain name embedded in guest UPNs?

    Change User's UPN:

    Connect-MsolService  
    Set-MsolUserPrincipalName -UserPrincipalName "prefix#EXT#@domain.onmicrosoft.com" -NewUserPrincipalName "prefix@domain.com"  
    

    Note - You have to use a domain that's verified within your Azure AD when running Set-MsolUserPrincipalName. Otherwise, you'll receive the error message below.
    149487-image.png

    149534-image.png

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.