Azure B2B Customize Email format for Guest Users

Prashu 56 Reputation points
2020-09-12T03:45:11.443+00:00

How can we customize email to html format while inviting guest users from Graph API ?

Reference: https://learn.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http

I have the html
InviteMessage= "<table border=\"2\" bgcolor=\"yellow\">" +
"<tr><td>Test Invite</td><td></td><td></td></tr>" +
"</table>";
and would like to send it using Graph api/SDK

invitation.InvitedUserMessageInfo = new InvitedUserMessageInfo  
        {  
            CustomizedMessageBody = InviteMessage  
        };  

Whenever I try to send this, invitation body would appear as
<table border="2" bgcolor="yellow"> <tr><td>Test Invite</td><td></td><td></td></tr></table>

in the recipient email with no formatting. Am I missing something. ?

Also is it possible to remove "This message was provided by the sender and is not from Microsoft Corporation." and phishing part in the email

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,784 questions
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,663 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,086 Reputation points Microsoft Employee
    2020-09-16T20:20:11.81+00:00

    Hi, unfortunately this is not possible to do currently. This documentation details the available options you have for invitation messages. If you would like, you can submit a feature request here. Please let me know if I can help you with anything else!