Search code examples
azure-active-directorymicrosoft-graph-apiazure-ad-b2b

Invitation API don't have user group to add invited user group to


On azure AD b2b, when we are inviting user to use the application, we have possibility to add invited user to group. From what I see here: https://learn.microsoft.com/pl-pl/azure/active-directory/b2b/customize-invitation-api the invitation API does not have such possibility. Is there anything we could do, to send invitation from our application and add invited user to concrete group during the process?


Solution

  • The invitation API does not have such possibility. You need two steps to achieve this. You can integrate them into one behavior.

    1.send invitation.

    enter image description here

    2.Get the user id from step1. Then Add the invited user to a group.

    enter image description here