1
votes

Is there any API, that allows the ability in app context or app+user context, to directly guest a user into a tenant without going through the invitation/redemption workflow?

I see this, https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/invitation, it shows how to suppress the email but it still forces a manual redemption process.

And it looks like the graph API only has "Create User", no "Add Guest". User does have a field userType that could be "Guest", but it seems like this API is geared toward creating new users, so my hunch is this wouldn't work.

1

1 Answers

1
votes

Requirement:- User User1 is trying to invite users from Tenant-B to Tenant-A. The requirement is that there should not be any manual redemption process and redemption should happen automatically.

Solution:- Add the user User1 to the Tenant-B as a member user (UserType == Member). Now user1 can invite any user from Tenant-B to Tenant-A with out forcing manual redemption.

In the invite API set sendInvitationMessage = false to avoid sending the invitation email. https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/invitation