Forum Discussion
Automating redemption of invitations
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
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.
7 Replies
- Sarat Subramaniam
Microsoft
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.
- Michael BakerCopper Contributor
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
- Sheila AllenCopper Contributor
I have been able to add external users to SharePoint groups immediately after sending an AAD invitation using the following script:
https://gallery.technet.microsoft.com/Add-a-User-to-SharePoint-c1e50012