How to restrict people to edit snippet of script editor webpart in sharepoint 2013?

SharePoint Asked by user1519872 on December 10, 2021

I want to restrict people to edit snippet of script editor webpart in sharepoint 2013. Only developer group should have the access to edit the code. I tried by creating a user group for developers and make them as target audience.

But page itself not visible to the other users. Other user should able to see the page and upload documents to a library using the current page.

2 Answers

Move the script to a js file and place the file in a new document library on your site. Break the permissions on the library and allow Edit permissions for your admins. Remove the script editor web part and replace it with a Content Editor web part referencing the js file

Answered by Kasper Bo Larsen on December 10, 2021

Place your script in a document library where only the dev. group has contribute permissions, others have only read permission, and refer that script from the web part. Set read-only permission on the web part page itself. BTW. is it a web part page, a wiki page, publishing page, or application page?

Answered by pholpar on December 10, 2021

Add your own answers!

Related Questions

Can I change favicon without modifying the master page?

3  Asked on January 4, 2022 by default_noob_network


Add link to button in infopath

1  Asked on January 4, 2022 by j-choe


Get Page Field Values with javascript

2  Asked on January 2, 2022 by rothrock


I’ve sharepoint 2013 farm last updated June 2014

1  Asked on December 31, 2021 by ahmed-alsharkawy


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP