Home
%3CLINGO-SUB%20id%3D%22lingo-sub-170693%22%20slang%3D%22en-US%22%3EUnexpected%20Access%20Denied%3A%20Invitations%20via%20Group%20Membership%20result%20in%20Single%20Instance%20Access%20Denied.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-170693%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%3A%20for%20a%20breakdown%20and%20overview%2C%20see%20the%20bottom%20of%20this%20article.%3C%2FEM%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1701991572%22%20id%3D%22toc-hId-1731602653%22%3EBackground%3C%2FH2%3E%0A%3CP%3EMary%20works%20for%20Tailspin%20Toys.%26nbsp%3B%20Excited%20about%20her%20new%20project%2C%20collaborating%20with%20a%20freelance%20artist%20on%20a%20new%20product%2C%20Mary%20uploads%20her%20project%20proposal%20and%20design%20documentation%20to%20a%20document%20library%20in%20a%20subsite%20dedicated%20to%20this%20project%2C%20and%20hosted%20in%20SharePoint%20Online.%20Wanting%20to%20share%20only%20this%20file%2C%20she%20breaks%20inheritance%20and%20grants%20permissions%20to%20the%20file%20to%20an%20external%20collaboration%20group%2C%20per%20her%20company%20policy%20regarding%20external%20collaboration.%26nbsp%3B%20She%20then%20emails%20her%20SharePoint%20Admin%2C%20who%20then%20adds%20her%20collaborator%2C%20Abdoulaye%2C%20to%20the%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAbdoulaye%20receives%20an%20invitation%20email%20to%20Tailspin%20Toy%E2%80%99s%20SharePoint%20Online%20tenant%20and%20clicks%20the%20accept%20invitation%20link.%26nbsp%3B%20He%20proceeds%20through%20the%20registration%20process%2C%20using%20his%20own%20Office%20365%20Small%20Business%20Account%20(Organization%20Account)%20but%20gets%20an%20access%20denied.%26nbsp%3B%20He%20copies%20the%20text%20of%20the%20error%20and%26nbsp%3B%20forwards%20it%20on%20to%20Mary%2C%20who%20sends%20it%20to%20her%20SharePoint%20Administrator%2C%20Peter.%26nbsp%3B%20Peter%20opens%20a%20support%20case%20with%20Microsoft%2C%20and%20together%20with%20the%20Support%20Engineer%20Alice%2C%20set%20up%20a%20troubleshooting%20session%20with%20Abdoulaye.%26nbsp%3B%20When%20they%20ask%20Abdoulaye%20to%20access%20the%20file%2C%20he%20can%20access%20the%20file%20with%20no%20issues.%3C%2FP%3E%0A%3CP%3EAt%20first%2C%20Alice%20is%20leaning%20towards%20this%20being%20an%20isolated%20issue%2C%20but%20Peter%2C%20who%20has%20had%20this%20same%20exact%20thing%20happen%20to%20him%20twice%20before%2C%20forwards%20Mary%20the%20Service%20Request%20Numbers%20of%20the%20previous%20two%20interactions%2C%20mentioning%20that%20he%20has%20had%20reports%20of%20this%20prior%20to%20opening%20a%20request%20with%20Microsoft.%20Alice%20agrees%20that%20this%20is%20peculiar%2C%20and%20the%20two%20agree%20to%20attempt%20to%20reproduce%20the%20problem.%26nbsp%3B%20Working%20together%2C%20Peter%20walks%20Alice%20through%20each%20step%20in%20the%20process.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EFirst%2C%20the%20owner%20of%20a%20sub-site%20(Mary)%20with%20broken%20permissions%20inheritance%20will%20decide%20to%20invite%20External%20Users.%20They%20create%20a%20SharePoint%20Group%20and%20assign%20permissions%20for%20the%20site%20or%20library%20to%20the%20group.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EThe%20Site%20Collection%20Admin%2C%20(Peter)%2C%20then%20receives%20the%20request%20to%20add%20a%20user%20to%20the%20group%2C%20and%20he%20adds%20the%20user%20to%20the%20SharePoint%20Group.%20Working%20with%20Alice%2C%20Peter%20adds%20her%20to%20the%20collaboration%20group.%3C%2FLI%3E%0A%3CLI%3EAlice%2C%20or%20the%20user%20invited%2C%20receives%20the%20invitation.%20When%20Alice%20clicks%20the%20link%20to%20accept%20the%20invitation%2C%20she%20too%20receives%20the%20access%20denied.%26nbsp%3B%20Luckily%2C%20she%20had%20a%20Fiddler%20capture%20running%20and%20was%20able%20to%20capture%20the%20access%20denied%20immediately.%3C%2FLI%3E%0A%3CLI%3EShe%20then%20tries%20again%20to%20access%20the%20file%2C%20and%20can%20open%20the%20file%2C%20just%20like%20Abdoulaye.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22toc-hId--850165389%22%20id%3D%22toc-hId--820554308%22%3EThe%20Investigation%20Continues%3C%2FH2%3E%0A%3CP%3EBecause%20Alice%20was%20able%20to%20capture%20a%20reproduction%20of%20the%20error%2C%20she%20is%20immediately%20able%20to%20access%20backend%20logs.%26nbsp%3B%20SharePoint%20Online%20generates%20a%20significant%20amount%20of%20telemetry%20data%20in%20the%20form%20of%20usage%20logs%2C%20and%20there%20is%20a%20limited%20time%20window%20when%20the%20full%20logs%20are%20available%20before%20they%20are%20scrubbed%20clean%20of%20any%20Personally%20Identifiable%20Information.%26nbsp%3B%20When%20she%20reviews%20the%20logs%2C%20she%E2%80%99s%20immediately%20able%20to%20spot%20the%20issue.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20broken%20inheritance%20subsites%20or%20items%2C%20the%20group%20has%20only%20limited%20access%20to%20the%20resources%20that%20exist%20higher%20up%20the%20hierarchy.%26nbsp%3B%20When%20the%20invitation%20is%20being%20generated%20however%2C%20it%20is%20done%20not%20in%20the%20context%20of%20the%20item%2C%20which%20exists%20in%20a%20subsite%20below%20the%20main%20site%2C%20but%20rather%20in%20the%20context%20of%20the%20root%20of%20the%20site%20collection%2C%20where%20all%20groups%20for%20all%20subsites%20exist.%26nbsp%3B%20Because%20of%20this%2C%20the%20invitation%20email%20was%20forwarding%20the%20user%20to%20the%20root%20of%20the%20site%20collection%2C%20and%20not%20the%20item.%26nbsp%3B%20The%20invited%20user%20does%20not%20have%20the%20proper%20permissions%20to%20the%20root%20of%20the%20site%20collection%2C%20and%20thus%20gets%20the%20access%20denied.%26nbsp%3B%20Subsequent%20attempts%20have%20the%20user%20going%20directly%20to%20the%20resource%2C%20and%20so%20it%20works.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPeter%20is%20now%20really%20frustrated.%26nbsp%3B%20He%20wants%20to%20be%20able%20to%20implement%20an%20approval%20process%20to%20include%20some%20sort%20of%20check%20on%20external%20user%20sharing%2C%20and%20now%20he%E2%80%99s%20being%20told%20he%20can%E2%80%99t%20do%20that.%26nbsp%3B%20However%2C%20by%20explaining%20to%20Alice%20the%20specific%20business%20needs%20he%E2%80%99s%20trying%20to%20accomplish%2C%20Alice%20can%20suggest%20an%20alternative%20method%20to%20satisfy%20those%20business%20needs%2C%20while%20at%20the%20same%20time%2C%20not%20having%20to%20instruct%20users%20to%20ignore%20error%20messages.%26nbsp%3B%20Together%2C%20they%20turn%20to%20look%20at%20a%20different%20process.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-892644946%22%20id%3D%22toc-hId-922256027%22%3EAzure%20B2B%20(Business%20to%20Business)%20User%20Invitations%3C%2FH2%3E%0A%3CP%3EWe%20will%20be%20taking%20a%20deeper%20look%20at%20the%20way%20in%20which%20Azure%20Active%20Directory%20Business%20to%20Business%20(AAD%20B2B)%20interfaces%20with%20SharePoint%20Online%20in%20a%20future%20article%20that%20will%20be%20linked%20below%20when%20it%20becomes%20available.%26nbsp%3B%20But%20after%20looking%20at%20the%20feature%20sets%20and%20process%20ideas%20suggested%20by%20Mary%2C%20Peter%20was%20not%20only%20interested%20in%20using%20Azure%20B2B%20to%20satisfy%20his%20requirements%2C%20but%20also%20excited%20at%20the%20possibilities%20for%20auditing%20and%20security%20reports%20available%20to%20him%20using%20his%20AAD%20Premium%20subscription.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPeter%20decided%20on%20implementing%20a%20process%20where%20the%20external%20user%20would%20receive%20a%20B2B%20invitation%2C%20accept%20that%2C%20and%20then%20be%20directed%20to%20the%20resource%20to%20which%20they%20were%20invited.%26nbsp%3B%20With%20Azure%20B2B%20Invitation%20API%2C%20Peter%20could%20customize%20the%20invitation%20email%20to%20include%20instructions%20on%20what%20to%20expect%20as%20well%20as%20a%20privacy%20and%20consent%20disclaimer.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20Mary%20resolved%20and%20closed%20the%20latest%20Service%20Request%2C%20Peter%20was%20thankful%20he%20and%20Mary%20were%20able%20to%20discuss%20not%20just%20the%20technical%20problem%20that%20started%20the%20service%20request%2C%20but%20the%20underlying%20implementation%20goals%20that%20allowed%20Mary%20to%20direct%20him%20to%20a%20far%20richer%20and%20less%20frustrating%20feature%20set%20for%20him%20to%20accomplish%20the%20same%20task%2C%20with%20less%20worry%20and%20less%20overhead.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20next%20time%20you%20find%20yourself%20speaking%20with%20Microsoft%20SharePoint%20Online%20Support%2C%20remember%20to%20take%20a%20step%20back%2C%20and%20consider%20the%20underlying%20goals%20you%E2%80%99re%20attempting%20to%20accomplish.%26nbsp%3B%20Perhaps%20your%20Support%20Representative%20can%20suggest%20a%20new%20or%20different%20method%20of%20accomplishing%20the%20same%20objective%2C%20and%20in%20doing%20so%2C%20help%20you%20be%20more%20successful%20and%20more%20efficient.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Join%20us%20next%20time%20for%20more%20on%20how%20Azure%20B2B%20and%20SharePoint%20Online%20interface%20for%20rich%20collaboration%20experiences%20that%20are%20simple%20and%20secure.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1462998510%22%20id%3D%22toc-hId--1433387429%22%3EKey%20Points%20and%20Summary%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3EWhen%20you%20are%20inviting%20users%20through%20group%20membership%2C%20it%20is%20possible%20to%20generate%20invitations%20to%20resources%20that%20the%20group%20does%20not%20have%20access%20to.%3C%2FLI%3E%0A%3CLI%3EThis%20will%20often%20result%20in%20a%20single%20instance%20failure%20for%20external%20users%20and%20can%20lead%20to%20frustrating%20support%20experiences.%3C%2FLI%3E%0A%3CLI%3EWhen%20you%20have%20a%20situation%20where%20an%20issue%20is%20causing%20multiple%20support%20engagements%2C%20consider%20having%20those%20previous%20SRs%20and%20the%20summary%20closures%20with%20you%20to%20share%20with%20your%20new%20engineer%2C%20in%20order%20to%20facilitate%20faster%20troubleshooting.%3C%2FLI%3E%0A%3CLI%3EWhen%20implementing%20an%20approval%20process%20for%20external%20user%20sharing%2C%20consider%20leveraging%20Azure%20Active%20Directory%E2%80%99s%20Business%20to%20Business%20(B2B)%20features%20for%20a%20suite%20of%20tools%20that%20will%20facilitate%20this%20kind%20of%20process%20implementation.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EMany%20thanks%20to%20my%20Colleague%2C%20John%20Fulton%2C%20for%20the%20idea%20that%20led%20to%20this%20post.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-170693%22%20slang%3D%22en-US%22%3E%3CP%3EMary%20works%20for%20Tailspin%20Toys.%26nbsp%3B%20Excited%20about%20her%20new%20project%2C%20collaborating%20with%20a%20freelance%20artist%20on%20a%20new%20product%2C%20Mary%20uploads%20her%20project%20proposal%20and%20design%20documentation%20to%20a%20document%20library%20in%20a%20subsite%20dedicated%20to%20this%20project%2C%20and%20hosted%20in%20SharePoint%20Online.%20Wanting%20to%20share%20only%20this%20file%2C%20she%20breaks%20inheritance%20and%20grants%20permissions%20to%20the%20file%20to%20an%20external%20collaboration%20group%2C%20per%20her%20company%20policy%20regarding%20external%20collaboration.%26nbsp%3B%20She%20then%20emails%20her%20SharePoint%20Admin%2C%20who%20then%20adds%20her%20collaborator%2C%20Abdoulaye%2C%20to%20the%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAbdoulaye%20receives%20an%20invitation%20email%20to%20Tailspin%20Toy%E2%80%99s%20SharePoint%20Online%20tenant%20and%20clicks%20the%20accept%20invitation%20link.%26nbsp%3B%20He%20proceeds%20through%20the%20registration%20process%2C%20using%20his%20own%20Office%20365%20Small%20Business%20Account%20(Organization%20Account)%20but%20gets%20an%20access%20denied.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-170693%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Support%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-173797%22%20slang%3D%22en-US%22%3ERe%3A%20Unexpected%20Access%20Denied%3A%20Invitations%20via%20Group%20Membership%20result%20in%20Single%20Instance%20Access%20Deni%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-173797%22%20slang%3D%22en-US%22%3EOK%2C%20so%20how%20do%20I%20fix%20the%20issue%3F%20See%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FGuest-sees-page-for-2-seconds-then-access-denied-to-Group-SP%2Fm-p%2F173796%23M5097%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FGuest-sees-page-for-2-seconds-then-access-denied-to-Group-SP%2Fm-p%2F173796%23M5097%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172420%22%20slang%3D%22en-US%22%3ERe%3A%20Unexpected%20Access%20Denied%3A%20Invitations%20via%20Group%20Membership%20result%20in%20Single%20Instance%20Access%20Deni%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172420%22%20slang%3D%22en-US%22%3E%3CP%3EComplex%20issue%20-%20thanks%20for%20breaking%20it%20down%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106517%22%20target%3D%22_blank%22%3E%40Toby%20Bianchi%3C%2FA%3E!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

 

Note: for a breakdown and overview, see the bottom of this article.

Background

Mary works for Tailspin Toys.  Excited about her new project, collaborating with a freelance artist on a new product, Mary uploads her project proposal and design documentation to a document library in a subsite dedicated to this project, and hosted in SharePoint Online. Wanting to share only this file, she breaks inheritance and grants permissions to the file to an external collaboration group, per her company policy regarding external collaboration.  She then emails her SharePoint Admin, who then adds her collaborator, Abdoulaye, to the group.

 

Abdoulaye receives an invitation email to Tailspin Toy’s SharePoint Online tenant and clicks the accept invitation link.  He proceeds through the registration process, using his own Office 365 Small Business Account (Organization Account) but gets an access denied.  He copies the text of the error and  forwards it on to Mary, who sends it to her SharePoint Administrator, Peter.  Peter opens a support case with Microsoft, and together with the Support Engineer Alice, set up a troubleshooting session with Abdoulaye.  When they ask Abdoulaye to access the file, he can access the file with no issues.

At first, Alice is leaning towards this being an isolated issue, but Peter, who has had this same exact thing happen to him twice before, forwards Mary the Service Request Numbers of the previous two interactions, mentioning that he has had reports of this prior to opening a request with Microsoft. Alice agrees that this is peculiar, and the two agree to attempt to reproduce the problem.  Working together, Peter walks Alice through each step in the process.

 

  1. First, the owner of a sub-site (Mary) with broken permissions inheritance will decide to invite External Users. They create a SharePoint Group and assign permissions for the site or library to the group. 
  2. The Site Collection Admin, (Peter), then receives the request to add a user to the group, and he adds the user to the SharePoint Group. Working with Alice, Peter adds her to the collaboration group.
  3. Alice, or the user invited, receives the invitation. When Alice clicks the link to accept the invitation, she too receives the access denied.  Luckily, she had a Fiddler capture running and was able to capture the access denied immediately.
  4. She then tries again to access the file, and can open the file, just like Abdoulaye.

The Investigation Continues

Because Alice was able to capture a reproduction of the error, she is immediately able to access backend logs.  SharePoint Online generates a significant amount of telemetry data in the form of usage logs, and there is a limited time window when the full logs are available before they are scrubbed clean of any Personally Identifiable Information.  When she reviews the logs, she’s immediately able to spot the issue.

 

With broken inheritance subsites or items, the group has only limited access to the resources that exist higher up the hierarchy.  When the invitation is being generated however, it is done not in the context of the item, which exists in a subsite below the main site, but rather in the context of the root of the site collection, where all groups for all subsites exist.  Because of this, the invitation email was forwarding the user to the root of the site collection, and not the item.  The invited user does not have the proper permissions to the root of the site collection, and thus gets the access denied.  Subsequent attempts have the user going directly to the resource, and so it works.

 

Peter is now really frustrated.  He wants to be able to implement an approval process to include some sort of check on external user sharing, and now he’s being told he can’t do that.  However, by explaining to Alice the specific business needs he’s trying to accomplish, Alice can suggest an alternative method to satisfy those business needs, while at the same time, not having to instruct users to ignore error messages.  Together, they turn to look at a different process.

Azure B2B (Business to Business) User Invitations

We will be taking a deeper look at the way in which Azure Active Directory Business to Business (AAD B2B) interfaces with SharePoint Online in a future article that will be linked below when it becomes available.  But after looking at the feature sets and process ideas suggested by Mary, Peter was not only interested in using Azure B2B to satisfy his requirements, but also excited at the possibilities for auditing and security reports available to him using his AAD Premium subscription. 

 

Peter decided on implementing a process where the external user would receive a B2B invitation, accept that, and then be directed to the resource to which they were invited.  With Azure B2B Invitation API, Peter could customize the invitation email to include instructions on what to expect as well as a privacy and consent disclaimer. 

 

As Mary resolved and closed the latest Service Request, Peter was thankful he and Mary were able to discuss not just the technical problem that started the service request, but the underlying implementation goals that allowed Mary to direct him to a far richer and less frustrating feature set for him to accomplish the same task, with less worry and less overhead.

 

The next time you find yourself speaking with Microsoft SharePoint Online Support, remember to take a step back, and consider the underlying goals you’re attempting to accomplish.  Perhaps your Support Representative can suggest a new or different method of accomplishing the same objective, and in doing so, help you be more successful and more efficient.

Join us next time for more on how Azure B2B and SharePoint Online interface for rich collaboration experiences that are simple and secure.

Key Points and Summary

  • When you are inviting users through group membership, it is possible to generate invitations to resources that the group does not have access to.
  • This will often result in a single instance failure for external users and can lead to frustrating support experiences.
  • When you have a situation where an issue is causing multiple support engagements, consider having those previous SRs and the summary closures with you to share with your new engineer, in order to facilitate faster troubleshooting.
  • When implementing an approval process for external user sharing, consider leveraging Azure Active Directory’s Business to Business (B2B) features for a suite of tools that will facilitate this kind of process implementation.

Many thanks to my Colleague, John Fulton, for the idea that led to this post.

 

2 Comments
Frequent Contributor

Complex issue - thanks for breaking it down, @Toby Bianchi

Frequent Contributor