Is it possible to utilize the invitation API on created guest account?

Christoffer Lopez Fredriksson 20 Reputation points
2025-02-24T14:04:45.81+00:00

I am exploring the possibilities revolving some requirements for guest/B2B account creation where we want to improve the creation of these accounts. I am looking to use a static web app as a landing page containing a table where account details can be provided such as first name, last name etc and once those details has been provided they are submitted to a logic app. The logic app then takes the values and creates a guest account where the provided values are populated on the guest account during creation.

From my understanding the recommended method would be to use the Graph API invitations endpoint when it comes to B2B accounts, but the API is very limited when it comes to populating attributes for the B2B account. The Graph API users endpoint can provide the possibility to create a account as a guest where we are able to populate the attributes with values but we lose the sign in experience that the invitation API provides with the usage of the invite link and no password is needed as well as the consent form.

So I am wondering if it would be possible somehow to combine these two by first creating the account setting it up with the attributes populated to then generate an invite for the sign in experience that the invitation API provides?

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

1 answer

Sort by: Most helpful
  1. Akhilesh Vallamkonda 12,180 Reputation points Microsoft Vendor
    2025-02-26T22:34:32.0466667+00:00

    Hi @Christoffer Lopez Fredriksson
    If I understand correctly you are trying to create a way to invite a guest user by taking the attributes from static web app and pass the attribute to logic app with the graph API endpoint to invite the guest user.

    1. you can integrate a static web app with Logic app, use JavaScript or any front-end framework to make an HTTP request to a web endpoint when the form is submitted.
    2. Create a Logic App in Azure that can be triggered by an HTTP request. This will serve as the endpoint for your static web app's form submissions.
    3. Set up the Logic App to handle incoming data. You can use connectors within the Logic App to interact with other services, such as Azure Active Directory for creating guest accounts using the Graph API.

    From the logic app you can invite the guest user by using the graph API endpoint. you can go refer the video-> create a new invitation add an external user to the organization. Logic Apps Graph API.

    May I know what the other attribute are you are looking, and could you please explain more what you mean "combine these two by first creating the account setting it up with the attributes populated to then generate an invite for the sign in experience that the invitation API provides?"

    Hope this helps. If this is not your query do let us know by responding in the comments section.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.