Enable Custom Scripts on SharePoint Online (O365)

Custom Scripts are disabled on SharePoint online by default. if we need to add some custom scripts or need to access your SharePoint Online Site using SharePoint Designer you need to allow custom scripts.

When you are going SharePoint Admin center in Office 365 portal, you can find setting tab ,after click on that you can find custom script title. by default these features are disabled.

capture

if you need to add custom scripts or SharePoint Designer Access to the SharePoint Online Site, you should allow these two.

you can allow custom scripts by two ways.

  1. Allow by using SharePoint Admin Center (Change using by above screen), but it takes up to 24 hours to allow custom scripts on SharePoint Online Site.
  2. Allow by using SharePoint Online Management Shell, its very simple you need to run some power shell scripts.

To Allow custom scripts by using SharePoint Online Management Shell, you have to follow below steps,

  1. Download & Install SharePoint Online Management ShellClick Here to Download SharePoint Online Management Shell.
  2. Open SharePoint Online Management Shell.Connect SharePoint site by providing SharePoint Site Credentials, run below power shell script on  SharePoint Online Management Shell.

    Connect-SPOService -Url “Site Url” -credential “User Name”

    Use SharePoint Admin Center Url for Connect SharePoint Online (eg. https://udara-admin.sharepoint.com).

  3. Allow custom scripts by using below power shell script, run this,use
    Set-SPOsite “Site Url” -DenyAddAndCustomizePages 0

After successfully run above Scripts now you can add custom scripts on SharePoint Online Site.

Hope you Learned Something,
Thanks,
Udara Eshan.
Advertisements

Author: eshan1604

Hi Guys, I'm Udara Eshan Ariyarathne from Sri Lanka. Currently i'm working as a Software Engineer (Microsoft Technologies). I'm sharing some IT related articles such as Development ,Configuration and Designing things what i have learn from day to day works. Hope it useful all of us. "Enjoying IT" Thanks & Regards, Udara Eshan Ariyarthne

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s