Share via


SharePoint Online: How to Enable Custom Script

Introduction

Enabling custom scripts is allowing the users to run custom scripts on personal sites and self-service created sites. Without enabling custom scripts, we can’t embed the script in personal sites using SharePoint Designer. 

Steps to achieve

Follow the below steps to “Enable” the custom script feature.

Step 1 - Open your Office 365 Admin Portal.

http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/BlogImages/09212016002901AM/image001.png

Step 2 - Select SharePoint from left navigation, as shown below.

http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/BlogImages/09212016002901AM/image002.png

**Step 3 - **On SharePoint admin page, select 'Settings'. It will navigate to the Settings page.

http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/BlogImages/09212016002901AM/image003.png

**Step 4 - **Check 'Allow users to run custom scripts on personal sites and self-service created sites', as shown below.

http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/BlogImages/09212016002901AM/image004.png

Step 5 - Click “OK”. It takes about 24 hours for the changes to take effect.

http://csharpcorner.mindcrackerinc.netdna-cdn.com/UploadFile/BlogImages/09212016002901AM/image005.png

Finally, you can embed the code for personal sites using SharePoint Designer.

Summary

So, we have explored how to enable the custom script for SharePoint Online Portal.