SOLVED

Automating redemption of invitations

%3CLINGO-SUB%20id%3D%22lingo-sub-141399%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-141399%22%20slang%3D%22en-US%22%3ENice%20glad%20it%20worked%20out!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-141388%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-141388%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Clemence%2C%20I%20was%20able%20to%20accomplish%20it%20using%20that%20blogpost.%20worked%20like%20a%20charm%2C%20no%20user%20interaction.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-141378%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-141378%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20able%20to%20add%20external%20users%20to%20SharePoint%20groups%20immediately%20after%20sending%20an%20AAD%20invitation%20using%20the%20following%20script%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FAdd-a-User-to-SharePoint-c1e50012%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAdd%20a%20User%20to%20SharePoint%20Online%20Groups%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137999%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137999%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jesus%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20link%20that%20probably%20will%20help%20as%20well.%20%3CA%20href%3D%22https%3A%2F%2Fblog.kloud.com.au%2F2017%2F09%2F19%2Fautomatically-provision-azure-ad-b2b-guest-accounts%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.kloud.com.au%2F2017%2F09%2F19%2Fautomatically-provision-azure-ad-b2b-guest-accounts%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-116551%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-116551%22%20slang%3D%22en-US%22%3E%3CP%3Ecould%20you%20resolved%20this%3F%20i%20followed%20this%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fjustidm.wordpress.com%2F2017%2F05%2F07%2Fazure-ad-b2b-how-to-bulk-add-guest-users-without-invitation-redemption%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjustidm.wordpress.com%2F2017%2F05%2F07%2Fazure-ad-b2b-how-to-bulk-add-guest-users-without-invitation-redemption%2F%3C%2FA%3E%20but%20didn't%20work.%20maybe%20I%20missed%20a%20step.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-114777%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-114777%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20believe%20the%20question%20was%20about%20automating%20user%20redemption%20of%20Invite.%3C%2FP%3E%3CP%3EIe%20automatically%20accepting%20the%20invite%20for%20users.%3C%2FP%3E%3CP%3Ethis%20is%20relative%20because%20when%20users%20are%20added%20to%20a%20Directory%20as%20guest%3B%20they%20cannot%20be%20added%20to%20SPO%20groups%20via%20an%20enabled%20people%20picker%20in%20SPO%20until%20they%20accept.%20%26nbsp%3B%3C%2FP%3E%3CP%3Ethere%20is%20not%20alot%20documented%20on%20this%20invite%20process%20when%20the%20end%20app%20to%20consume%20the%20guest%20identity%20is%20SPO%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59671%22%20slang%3D%22en-US%22%3ERe%3A%20Automating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59671%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Clemence%20-%20thanks%20for%20your%20question!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20you%20are%20asking%20for%20a%20stand%20alone%20portal%20that%20can%20perhaps%20perform%20self-service%20sign-up.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20possible%20with%20our%20APIs%20as%20described%20in%20the%20documentation%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-b2b-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-b2b-api%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20in%20the%20process%20of%20publishing%20code%20samples%26nbsp%3Bon%20Github%20that%20will%20show%20you%20one%20way%20to%20do%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20it%20is%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Factive-directory-dotnet-graphapi-b2bportal-web%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2Factive-directory-dotnet-graphapi-b2bportal-web%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20note%20-%20treat%20this%20as%20%22Alpha%22%20level%20code.%20We%20are%20still%20working%20on%20it%20and%20making%20updates.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57829%22%20slang%3D%22en-US%22%3EAutomating%20redemption%20of%20invitations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57829%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20would%20really%20like%20to%20see%20a%20way%20where%20the%20redemption%20of%20invitations%20can%20be%20automated%20by%20using%20an%20Azure%20AD%20App%20through%20the%20API.%20Currently%20this%20only%20seems%20possible%20when%20using%20a%20user%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20having%20to%20do%20huge%20CSV%20uploads%20of%20users%20and%20then%20hoping%20that%20the%20invitations%20are%20accepted%20before%20we%20can%20grant%20them%20access%20to%20SharePoint%20Online%20site%20collections.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20the%20use%20of%20CSV%20to%20invite%20users%20seems%20to%20be%20turning%20off%20some%20of%20our%20colleagues.%20Is%20there%20a%20possiblity%20of%20eventually%20having%20the%20capability%20to%20sync%20and%20create%20guest%20users%20from%20another%20AAD%20through%20APIs%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClem%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-57829%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EB2B%20collaboration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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!