question

KarlFinlay-9808 avatar image
0 Votes"
KarlFinlay-9808 asked RaytheonXie-MSFT edited

Sharepoint will not let me add custom files or scripts even with scripts enabled

I have set up a sharepoint site with the settings enabled for custom scripts. I have tried to upload a custom.css file in the style library but comes with an error message of access denied. I also downloaded 2 app spkg files and uploaded them to my app catalogue in the admin center of sharepoint however when I add the app to my site I do not get access to the webpart attached to that app. App deploys and adds to the site fine but I cannot use it. I have full admin rights and should be able to do all of the above so I need some developer advice or help on this issue.

office-sharepoint-onlinesharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @KarlFinlay-9808 ,
To allow custom script in admin center may take 24 hours to take effect. You can try following command in powershell if you don’t have 24 hours to wait.

 Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com -credential admin@[tenant].onmicrosoft.com 
 Set-SPOSite -Identity https://[yourtenant].sharepoint.com/[siteurl] -DenyAddAndCustomizePages 0


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Ray, yes as I stated I have already done this, custom script was enabled 1 week ago so unless there is some reason as to why it would take more than 1 week to allow it then I think it might be a different problem. I need some help with finding out why my access would still be limited, I have full admin rights on the site and I also have added and deployed apps that I cannot use yet for some reason because sharepoint is not allowing me to add the webpart attached to my site app, or let me upload a custom.css file so I can try change a little design and layout.

More help would be much appreciated

Thanks

0 Votes 0 ·

Hi @KarlFinlay-9808 ,
Please check things below for us to resolve the problem:
1.Switch to other users with full permission in the site to upload a css file.
2.Switch to other browsers.
3.Switch to another computer.

0 Votes 0 ·

Hi @KarlFinlay-9808 ,
would you please provide us with an update on the status of your issue?

0 Votes 0 ·