Forum Discussion

caidsoffice365's avatar
caidsoffice365
Copper Contributor
Feb 16, 2022

Azure Guest Account - Invitation email is not receiving for invited user

Hi,

We are trying to create guest accounts in Azure using Microsoft Graph API (https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http). But, we have observed that the invited user did not receive any email invitation which should happen automatically.

 

Sample POST request that we are using:

 

{
  "invitedUserEmailAddress""Email address",
  "inviteRedirectUrl""http://localhost"
}
 
Could you please help us in this regards.
 
Thank you in advance.
 

4 Replies

  • What does the response show? Does the user receive an email if you send the invite via the AAD UI? And of course make sure they check their spam folder.
    • caidsoffice365's avatar
      caidsoffice365
      Copper Contributor

      Thank you so much VasilMichev  for your reply.

      Yes it is working from AAD UI. But not using Microsoft graph API.

       

      Here is the request and response of the REST API(https://graph.microsoft.com/v1.0/invitations).

      Please let us know if we miss anything here.

      Request:

      {
        "invitedUserEmailAddress""email_address",
        "inviteRedirectUrl""http://localhost"
      }

      Response:

       

       

       

      • caidsoffice365's avatar
        caidsoffice365
        Copper Contributor

        Hi VasilMichev,

         

        Its working after setting the "sendInvitationMessage" property with value 'true' to the invitation request body.

         

        From the documentation https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http thought, sending invitation happens implicitly.

         

        Thank you.

Resources