Home

Site Collection App Catalog - External Users

%3CLINGO-SUB%20id%3D%22lingo-sub-149694%22%20slang%3D%22en-US%22%3ESite%20Collection%20App%20Catalog%20-%20External%20Users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149694%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20trying%20to%20have%20dev%2C%20test%20and%20prod%20site%20collections%20all%20on%20a%20single%20tenancy%2C%20but%20find%20that%20deplying%20a%20new%20version%20of%20an%20app%20is%20used%20by%20all%20site%20collections%20(even%20if%20you%20dont%20go%20to%20that%20site%20collection%20and%20specifically%20%22get%22%20the%20new%20app%20version).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20possible%20away%20around%20this%20would%20be%20to%20use%20Site%20Collection%20app%20catalogs%20-%20and%20then%20go%20through%20a%20release%20to%20each%20site%20collection's%20catalog%20in%20order%20to%20progress%20through%20the%20Dev%2C%20Test%2C%20Prod%20environments.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%26nbsp%3B(as%20indicated%20in%20the%20comments%20of%20this%20post%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fsite-collection-app-catalog%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fsite-collection-app-catalog%3C%2FA%3E)%20external%20user's%20on%20a%20site%20with%20a%20site%20coll%20app%20cat%20get%20the%20error%20message%3A%20%22%3CSPAN%3EThe%20current%20user%20does%20not%20have%20the%20permission%20to%20access%20the%20App%20Catalog.%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EMy%20test%20external%20user%20definitely%20has%20read%20access%20to%20the%20%22Apps%20for%20SharePoint%22%20list%20on%20the%20site%20collection%2C%20Is%20there%20something%20else%20I%20need%20to%20do%20to%20avoid%20this%20error%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENigel%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-149694%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154060%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Collection%20App%20Catalog%20-%20External%20Users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154060%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20David%20-%20thanks%20for%20the%20reply.%20Thought%20I%20would%20test%26nbsp%3Bit%20out%2C%20this%20is%20the%20process%20I%20followed%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Elogin%20to%20site%2C%20create%20blank%20modern%20page%20(no%20web%20parts)%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20successful%3C%2FLI%3E%0A%3CLI%3Eadd%20a%20text%20web%20part%20to%20the%20page%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20successful%3C%2FLI%3E%0A%3CLI%3Eadd%20a%20custom%20web%20part%20that%20is%20in%20the%20tenancies%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20successful%3C%2FLI%3E%0A%3CLI%3Eadd%20a%20custom%20web%20part%20that%20is%20in%20the%20site%20coll%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20FAIL%3C%2FLI%3E%0A%3CLI%3Eremove%20custom%20web%20part%20that%20is%20in%20the%20site%20coll%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20successful%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EOk%20-%20so%20it%20is%20when%20there%20is%20a%20web%20part%20from%20the%20local%20site%20collection's%20app%20catalog%20that%20is%20causing%20the%20issue%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Echeck%20the%20external%20user%20has%20read%20access%20to%20the%20local%20catalog%20-%20true%3C%2FLI%3E%0A%3CLI%3Egive%20%22Everyone%22%20read%20access%20to%20the%20tenancies%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20successful%3C%2FLI%3E%0A%3CLI%3Eadd%20a%20custom%20web%20part%20that%20is%20in%20the%20site%20coll%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20FAIL%3C%2FLI%3E%0A%3CLI%3Eopen%20the%20tenancies%20app%20catalog%20site%20for%20sharing%20to%20anonymous%20users%3C%2FLI%3E%0A%3CLI%3Econfirm%20my%20external%20user%20can%20access%20to%20the%20app%20catalog%20site%3C%2FLI%3E%0A%3CLI%3Eadd%20a%20custom%20web%20part%20that%20is%20in%20the%20site%20coll%20app%20catalog%3C%2FLI%3E%0A%3CLI%3Eaccess%20blank%20page%20with%20external%20user%20-%20access%20PASS%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWOW!!!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20it%20seems%20for%20an%20external%20user%20to%20access%20a%20page%20that%20includes%20a%20web%20part%20from%20an%20app%20deplyed%20to%20the%20Site%20Collection%20App%20Catalog%2C%20that%20external%20user%20must%20have%20specifcally%20been%20given%20permissions%20to%20access%20the%20tenancies%20app%20catalog%20-%20i.e.%20the%20tenancies%20app%20catalog%20site%20must%20be%20shared%20to%20them%20so%20that%20they%20have%20read%20access.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHOWEVER%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20level%20of%20access%20is%20not%20required%20for%20external%20users%20to%20run%20a%20page%20containing%20a%20webpart%20in%20the%20tenancies%20app%20catalog%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3F!%3F!%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBit%20weird%20-%20but%20I%20guess%20there%20is%20a%20path%20forward%2C%20even%20if%20it%20is%20not%20a%20great%20one%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20info%20David%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-153777%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Collection%20App%20Catalog%20-%20External%20Users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153777%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Nigel%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20also%20like%20to%20have%20the%20set-up%20you%20describe%2C%20with%20separate%20environments%20running%20separate%20versions%20of%20the%20code%2C%20but%20have%20had%20the%20same%20problem%20that%20External%20Users%20see%20an%20error%20message%20when%20viewing%20a%20page%20with%20an%20SPFx%20WebPart.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20believe%20I%20now%20have%20this%20working%20in%20a%20development%20tenancy.%26nbsp%3B%20I%20enabled%20external%20sharing%20for%20the%20tenant%20App%20Catalog%20and%20added%20%22Everyone%22%20to%20the%20Visitors%20group.%26nbsp%3B%20I%20can%20now%20see%20the%20page%20with%20the%20SPFx%20WebPart.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20followed%20the%20steps%20below%20to%20reproduce%20the%20problem%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreated%20a%20new%20Site%20Collection%20and%20enabled%20external%20sharing%3C%2FLI%3E%0A%3CLI%3EConfigured%20the%20Site%20Collection%20to%20have%20its%20own%20App%20Catalog%3C%2FLI%3E%0A%3CLI%3EUploaded%20an%20SPFx%20App%20into%20the%20App%20Catalog%3C%2FLI%3E%0A%3CLI%3EAdded%20the%20App%20to%20my%20Site%3C%2FLI%3E%0A%3CLI%3ECreated%20a%20Site%20Page%20and%20added%20the%20SPFx%20WebPart%3C%2FLI%3E%0A%3CLI%3EShared%20the%20Site%20with%20an%20external%20user%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EWhen%20I%20logged-in%20to%20the%20Site%20as%20the%20external%20user%2C%20I%20saw%20the%20error%20message%20you%20describe.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20checked%20the%20tenant%20App%20Catalog%20and%20noticed%20that%20the%20Everyone%20except%20External%20Users%20group%20has%20Read%20permissions%20but%20the%20Everyone%20group%20has%20no%20permissions.%26nbsp%3B%20I%20enabled%20external%20sharing%20for%20the%20tenant%20App%20Catalog%20(I%20selected%20the%20%22Allow%20sharing%20only%20with%20the%20external%20users%20that%20already%20exist%20in%20your%20organization's%20directory%22%20option)%20and%20added%20the%20Everyone%20group%20to%20the%20Visitors%20group.%26nbsp%3B%20When%20I%20logged-in%20as%20the%20external%20user%2C%20I%20was%20able%20to%20view%20the%20page%20and%20the%20SPFx%20WebPart.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20problem%20seems%20to%20be%20with%20the%20permissions%20on%20the%20tenant%20App%20Catalog%2C%20not%20the%20site%20App%20Catalog.%26nbsp%3B%20I%20will%20try%20making%20the%20permissions%20more%20restrictive%2C%20as%20allowing%20Everyone%20access%20is%20not%20ideal.%26nbsp%3B%20In%20my%20case%2C%20I%20can%20just%20share%20with%20the%20specific%20external%20users%20who%20need%20to%20use%20the%20WebParts.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDavid%20Preston%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Nigel Witherdin
Contributor

Hi,

 

We are trying to have dev, test and prod site collections all on a single tenancy, but find that deplying a new version of an app is used by all site collections (even if you dont go to that site collection and specifically "get" the new app version).

 

A possible away around this would be to use Site Collection app catalogs - and then go through a release to each site collection's catalog in order to progress through the Dev, Test, Prod environments.

 

However (as indicated in the comments of this post https://docs.microsoft.com/en-us/sharepoint/dev/general-development/site-collection-app-catalog) external user's on a site with a site coll app cat get the error message: "The current user does not have the permission to access the App Catalog."

 

My test external user definitely has read access to the "Apps for SharePoint" list on the site collection, Is there something else I need to do to avoid this error?

 

Thanks

 

Nigel

 

 

2 Replies

Hi Nigel,

 

I would also like to have the set-up you describe, with separate environments running separate versions of the code, but have had the same problem that External Users see an error message when viewing a page with an SPFx WebPart.

 

I believe I now have this working in a development tenancy.  I enabled external sharing for the tenant App Catalog and added "Everyone" to the Visitors group.  I can now see the page with the SPFx WebPart.

 

I followed the steps below to reproduce the problem:

 

  1. Created a new Site Collection and enabled external sharing
  2. Configured the Site Collection to have its own App Catalog
  3. Uploaded an SPFx App into the App Catalog
  4. Added the App to my Site
  5. Created a Site Page and added the SPFx WebPart
  6. Shared the Site with an external user

When I logged-in to the Site as the external user, I saw the error message you describe.

 

I checked the tenant App Catalog and noticed that the Everyone except External Users group has Read permissions but the Everyone group has no permissions.  I enabled external sharing for the tenant App Catalog (I selected the "Allow sharing only with the external users that already exist in your organization's directory" option) and added the Everyone group to the Visitors group.  When I logged-in as the external user, I was able to view the page and the SPFx WebPart.

 

The problem seems to be with the permissions on the tenant App Catalog, not the site App Catalog.  I will try making the permissions more restrictive, as allowing Everyone access is not ideal.  In my case, I can just share with the specific external users who need to use the WebParts.

 

Regards,

 

David Preston

Hey David - thanks for the reply. Thought I would test it out, this is the process I followed:

 

  • login to site, create blank modern page (no web parts)
  • access blank page with external user - access successful
  • add a text web part to the page
  • access blank page with external user - access successful
  • add a custom web part that is in the tenancies app catalog
  • access blank page with external user - access successful
  • add a custom web part that is in the site coll app catalog
  • access blank page with external user - access FAIL
  • remove custom web part that is in the site coll app catalog
  • access blank page with external user - access successful

Ok - so it is when there is a web part from the local site collection's app catalog that is causing the issue

  • check the external user has read access to the local catalog - true
  • give "Everyone" read access to the tenancies app catalog
  • access blank page with external user - access successful
  • add a custom web part that is in the site coll app catalog
  • access blank page with external user - access FAIL
  • open the tenancies app catalog site for sharing to anonymous users
  • confirm my external user can access to the app catalog site
  • add a custom web part that is in the site coll app catalog
  • access blank page with external user - access PASS

WOW!!!

 

So it seems for an external user to access a page that includes a web part from an app deplyed to the Site Collection App Catalog, that external user must have specifcally been given permissions to access the tenancies app catalog - i.e. the tenancies app catalog site must be shared to them so that they have read access.

 

HOWEVER

 

This level of access is not required for external users to run a page containing a webpart in the tenancies app catalog

 

?!?!?

 

Bit weird - but I guess there is a path forward, even if it is not a great one

 

Thanks for the info David

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies