Automating redemption of invitations

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.



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

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:


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


Here it is: 


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 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!