locked
How to send invitation to external email using Azure REST API RRS feed

  • Question

  • How can I send an invitation to the external user/email using the Azure REST API

    Reference :

    I found create invitation  details  in below URL.

    https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/invitation_post


    Azure REST API
    https://docs.microsoft.com/en-us/rest/api/

    B2B Invitation API Capabilities
    https://blogs.technet.microsoft.com/enterprisemobility/2016/10/31/azuread-b2b-invitation-api-is-now-in-public-preview/

    Regards,

    Nagaraj

    Tuesday, August 22, 2017 3:47 PM

Answers

  • Hi Nagaraj,


    Here is the current API reference;

    https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/invitation

    Here is the POST example;

    https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/invitation_post


    thanks,

    Timothy

    Wednesday, August 23, 2017 2:38 PM

All replies

  • Hi Nagaraj,

    Please see this sample MVC application;

    https://github.com/Azure-Samples/active-directory-dotnet-graphapi-web

    The sample shows how to configure an application to interact with the Graph API. This will require modification to suite your purposes. The existing actions will give you a place to start (create user, edit user, etc). You would need to create an additional action within the UsersController class to create the invitation. 

    In addition to your links please see the following for some more information on the API, and the powershell command versions;

    https://docs.microsoft.com/en-us/azure/active-directory/active-directory-b2b-api

    thanks,
    Timothy

    Tuesday, August 22, 2017 4:39 PM
  • Hi Timothy,

    I am looking for Azure REST API  which can be used to send invitation.

    I have used the below link to get the user details which is a Azure Rest API. I am looking for similar kind of document for send invitation.

    https://docs.microsoft.com/en-us/rest/api/graphrbac/users/get

    Regards,

    Nagaraj

    Wednesday, August 23, 2017 6:09 AM
  • Hi Nagaraj,


    Here is the current API reference;

    https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/invitation

    Here is the POST example;

    https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/invitation_post


    thanks,

    Timothy

    Wednesday, August 23, 2017 2:38 PM