SOLVED

Style Library has permission issues SharePoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-2100824%22%20slang%3D%22en-US%22%3EStyle%20Library%20has%20permission%20issues%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2100824%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20site%20administrator%20but%20when%20I%20am%20uploading%20or%20creating%20something%20under%20style%20library%2C%20it%20is%20giving%20error%20permission%20denied.%20The%20permission%20on%20library%20is%20inherited%20from%20site%20while%20I%20am%20also%20in%20owner%20group.%20What%20can%20be%20the%20reason%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2100824%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2104888%22%20slang%3D%22en-US%22%3ERe%3A%20Style%20Library%20has%20permission%20issues%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2104888%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F15168%22%20target%3D%22_blank%22%3E%40Ali%20Murtaza%3C%2FA%3E%26nbsp%3Bthe%20issue%20is%20due%20to%20no%20script.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EConnect-SPOService%20-Url%20https%3A%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%3CTENANTNAME%3E-admin.sharepoint.com%3C%2FTENANTNAME%3E%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-built_in%22%3ESet%3C%2FSPAN%3E-SPOSite%20-Identity%20https%3A%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%3CSITEURL%3E%20-DenyAddAndCustomizePages%200%3C%2FSITEURL%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Dear All,

 

I am site administrator but when I am uploading or creating something under style library, it is giving error permission denied. The permission on library is inherited from site while I am also in owner group. What can be the reason?

1 Reply
best response confirmed by Ali Murtaza (Occasional Contributor)
Solution

@Ali Murtaza the issue is due to no script.

 

Connect-SPOService -Url https://<tenantname>-admin.sharepoint.com
Set-SPOSite -Identity https://<SiteUrl> -DenyAddAndCustomizePages 0