How to change domain name in B2B Email Invitations

Mike Gaum 20 Reputation points
2024-03-18T15:26:47.77+00:00

I'm testing B2B invitations as a service principal via the New-MgInvitation cmdlet.

Everything goes fine except two elements in the Email received by the external users.

Looking at the example from Microsoft :2024-03-18 11_12_34-Reddit - https___preview.redd.it_qauup36qwhoc1.png_width=608&format=png&auto=web

  • Domain shows up as : [contoso.com]contoso.com
  • There is no portrait (I was hoping the app logo would show up here).

I'm guessing there's nothing that can be done about the portrait, but how can I fix the Domain display?

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

Accepted answer
  1. Marilee Turscak-MSFT 33,621 Reputation points Microsoft Employee
    2024-03-20T14:20:02.0833333+00:00

    Hi @Mike Gaum ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    You were sending a B2B invitation email but the domain display name was showing an incorrect prefix/field: [contoso.com]contoso.com instead of contoso.com

    Solution:

    Outlook was not parsing an aria-label correctly for the Domain field when the email was sent to an I @outlook.com address. The email showed up correctly when sent to a @gmail.com address.

    To get around this issue, you are extracting the redemption URL and adding it to a personalized email.

    Since I was not able to reproduce this issue in Outlook, please feel free to share feedback in the feedback forum for that team.

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

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,621 Reputation points Microsoft Employee
    2024-03-19T00:38:14.48+00:00

    Hi @Mike Gaum,

    The email includes the name and primary domain associated with the organization sending the invitation.

    If you want to change the domain name that appears in the invitation email, you will need to update the domain name associated with your Entra ID tenant under Custom domain names > Add custom domain > Make primary.

    User's image

    User's image

    Let me know if this helps and if you run into any issues.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.


  2. Marilee Turscak-MSFT 33,621 Reputation points Microsoft Employee
    2024-03-20T00:15:38.2366667+00:00

    Hi Mike Gaum ,

    Have you tried switching from one primary domain to a different one and switching back? I tested in my tenant and was not able to reproduce the issue you are describing. I sent an invitation with my initial primary domain setup as umbrellaco.onmicrosoft.com, which was reflected in the email:

    User's image Then I switched my primary domain to umbrellacorp.today, and the change was also reflected in the email: User's image

    As a reminder, note that you cannot set a federated domain as the primary domain. The primary domain must be a managed domain, so it's possible you could be running into a limitation here.

    As for the portrait, this will show up if you've set a profile image in the portal itself but it won't be the app logo unless that's your profile image.

    If you don't see any error messages when setting the primary domain and are able to set it again using "Make primary" but still run into this issue, let me know and we can get a support case opened to look into this issue.

    0 comments No comments

  3. Mike Gaum 20 Reputation points
    2024-03-20T13:53:55.63+00:00

    In conclusion, it depends where the invitation Email is sent.

    I was trying with a @outlook.com address and Outlook didn't parse an aria-label correctly for the Domain field.

    Email was fine when sent to a @gmail.com address.

    I won't be using the standard Entra invitation Email and will just extract the redemption URL and add it to a personalized Email.