Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

Automating redemption of invitations

Deleted
Not applicable

Hi Guys,

 

We would really like to see a way where the redemption of invitations can be automated by using an Azure AD App through the API. Currently this only seems possible when using a user account.

 

We are having to do huge CSV uploads of users and then hoping that the invitations are accepted before we can grant them access to SharePoint Online site collections.

 

Also the use of CSV to invite users seems to be turning off some of our colleagues. Is there a possiblity of eventually having the capability to sync and create guest users from another AAD through APIs?

 

Thank you.

 

Clem

7 Replies
best response confirmed by Eric Starker (Community Manager)
Solution

Hello Clemence - thanks for your question!

 

I think you are asking for a stand alone portal that can perhaps perform self-service sign-up.

 

This is possible with our APIs as described in the documentation here: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-b2b-api

 

We are in the process of publishing code samples on Github that will show you one way to do this.

 

Here it is: https://github.com/Azure/active-directory-dotnet-graphapi-b2bportal-web 

 

Please note - treat this as "Alpha" level code. We are still working on it and making updates.

i believe the question was about automating user redemption of Invite.

Ie automatically accepting the invite for users.

this is relative because when users are added to a Directory as guest; they cannot be added to SPO groups via an enabled people picker in SPO until they accept.  

there is not alot documented on this invite process when the end app to consume the guest identity is SPO

could you resolved this? i followed this https://justidm.wordpress.com/2017/05/07/azure-ad-b2b-how-to-bulk-add-guest-users-without-invitation... but didn't work. maybe I missed a step. 

I have been able to add external users to SharePoint groups immediately after sending an AAD invitation using the following script:

Add a User to SharePoint Online Groups

 

Hi Clemence, I was able to accomplish it using that blogpost. worked like a charm, no user interaction.

 

Nice glad it worked out!
1 best response

Accepted Solutions
best response confirmed by Eric Starker (Community Manager)
Solution

Hello Clemence - thanks for your question!

 

I think you are asking for a stand alone portal that can perhaps perform self-service sign-up.

 

This is possible with our APIs as described in the documentation here: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-b2b-api

 

We are in the process of publishing code samples on Github that will show you one way to do this.

 

Here it is: https://github.com/Azure/active-directory-dotnet-graphapi-b2bportal-web 

 

Please note - treat this as "Alpha" level code. We are still working on it and making updates.

View solution in original post