sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Access denied on ClientSideAssets for some users (especially new users)

Open BraunJonathan opened this issue 5 years ago • 8 comments

Category

  • [X] Question

Question

I ran today into an issu i never had encountered before : some of my users do not have access to the js files of my SPFX webparts/extensions whereas some other users have access...

I tried creating a new user and he has no access to the files either... I do NOT use CDS so users access directly to the appcatalog. image

Has anyone had this issue yet? this is my Group0 of my appCatalog image

I do not manage to understand why some users have access to the js files et some don't...

Environment details (development & target environment)

  • Your Developer Environment: Windows 10
  • Target Environment: SharePointOnline
  • Browser(s):Chrome last version
  • Tooling: VSCode mainly

BraunJonathan avatar Mar 09 '21 14:03 BraunJonathan

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Mar 09 '21 14:03 ghost

You could try to check the permission of the Client Side Assets library of your appCatalog where host these js files. As far as I know, the Client Side Assets library has unique permissions.

image Michael Han Microsoft SharePoint Community Support

michaelhan-1 avatar Mar 10 '21 07:03 michaelhan-1

First of all, thanks Michael for you answer, it's always nice to find some help around here !

Yes it indeed tells me that the library has unique permissions but i can't manage to display them... When i use the check permissions button, i got the same results for my user who can access to the js files end the other one who can't... image image Aurélie has no problem accessing the js files and therefore displaying the webparts and extensions whereas Juliette cannot display any webparts...

When i try to access the library or even the webpart folder (something like https://MY-TENANT.sharepoint.com/sites/appcatalog/ClientSideAssets/890affef-33e0-4d72-bd72-36399e02143b) i got an access denied for both accounts but if i add the js file (like https://MY-TENANT.sharepoint.com/sites/appcatalog/ClientSideAssets/890affef-33e0-4d72-bd72-36399e02143b/search-parts-controlstrings_fr-fr_9b5c2bbb8a739c704c1b1087c90d431c.js) Aurélie can download it and Juliette cannot...

I know that if i activate the public CDN my problem will be gone but i cannot understand the difference between my 2 users and that bothers me a lot as i'm beggining to have quite a good knowledge on Sharepoint and i can't figure out what's happening here...

BraunJonathan avatar Mar 10 '21 08:03 BraunJonathan

Per my knowledge, these js files should be available to all the internal users in your tenant. Is there any special for the user Juliette ?

Another workaround for you is to give everyone access to the Client Side Assets library.

Michael Han Microsoft SharePoint Community Support

michaelhan-1 avatar Mar 10 '21 09:03 michaelhan-1

Yes, that was my understanding too... No, nothing special about Juliette, i also tried to create a new user => same deal, no access to js files... I can reproduce the problem on at least 2 developper tenants (configured for first release for all users) so i'm mainly concerned about this being a real anomaly...

Yes i also could add access to everyone to the cliendSideAsset Library but as i said, my issue is more about understanding what happend and maybe how to deal with it properly without workarounds (but it is good to have a few of theses just in case :-))

BraunJonathan avatar Mar 10 '21 09:03 BraunJonathan

I tried to reproduce the issue on our production tenant even though on this particular tenant we have the Public cdn enabled... It seems that with public cdn enabled, standard users do not have direct access to the appcatalog js files...

So i can only imagine that there is something which grants access to those js files when cdn is not enabled and maybe that thing is broken on some of my developper tenants...

BraunJonathan avatar Mar 10 '21 09:03 BraunJonathan

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.

ghost avatar Dec 29 '21 15:12 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 05 '22 18:01 ghost