Atļaujot vai neatļaujot pielāgots skripts

Piezīme.:  Mēs vēlamies sniegt jums visjaunāko palīdzības saturu jūsu valodā, cik vien ātri to varam. Šī lapa ir tulkota automatizēti, un tajā var būt gramatiskas kļūdas un neprecizitātes. Mūsu nolūks ir šo saturu padarīt jums noderīgu. Vai lapas lejasdaļā varat mums pavēstīt, vai informācija jums noderēja? Ērtai atsaucei šeit ir šis raksts angļu valodā .

As a global or SharePoint admin in Office 365, you can allow custom script as a way of letting users change the look, feel, and behavior of sites and pages to meet organizational objectives or individual needs. If you allow custom script, all users who have "Add and Customize Pages" permission to a site or page can add any script they want. (By default, users who create sites are site owners and therefore have this permission. For more info about SharePoint permission levels, see Understanding permission levels in SharePoint.)

Piezīme.: For simple ways to change the look and feel of a site, see Change the theme of your SharePoint team site.

By default, script is allowed on sites that admins create. It is not allowed on OneDrive, on sites users create themselves, and on the root site for your organization. You’ll probably want to limit the amount of script you allow for security reasons. For more info about the security implications of custom script, see Security considerations of allowing custom script.

IMPORTANT: If SharePoint Online was set up for your organization before 2015, your custom script settings might still be set to "Not Configured" even though in the SharePoint admin center they appear to be set to prevent users from running custom script. In this case, users won't be able to copy items between SharePoint sites and between OneDrive and SharePoint. On the settings page of the SharePoint admin center, click OK to accept the custom script settings as they appear and enable cross-site copying. (For more info about copying items between OneDrive and SharePoint, see Copy files and folders between OneDrive for Business and SharePoint sites.)

In the SharePoint admin center, you can choose to allow users to run custom script on OneDrive (referred to as "personal sites") or on all user-created sites. For info about letting users create their own sites, see Manage site creation in SharePoint Online.

Brīdinājums.: Before you allow custom script on sites in your organization, make sure you understand the security implications.

  1. Pierakstieties pakalpojumā Office 365 kā globālais vai SharePoint administrators.

  2. Augšējā kreisajā stūrī atlasiet ikonu Vafeles raksta ikona attēlo pogas klikšķi, ar kuru atklājas vairāki lietojumprogrammu elementi, kurus var atlasīt. un, lai atvērtu Office 365 administrēšanas centru, izvēlieties Administrēšana. (Ja neredzat administrēšanas elementu, jums nav Office 365 administratora atļauju jūsu organizācijā.)

  3. Kreisajā rūtī izvēlieties Administrēšanas centri > SharePoint.

  4. Atlasiet Iestatījumi.

  5. Under Custom Script choose:

    • Allow users to run custom script on personal sites.

    • Allow users to run custom script on self-service created sites.

    Pielāgota skripta sadaļa SharePoint administrēšanas centra iestatījumu lapā

    Piezīme.: Because self-service site creation points to your organization’s root site collection by default, changing the Custom Script setting allows custom script on your organization’s root site collection. For info about changing where sites are created, see Manage site creation in SharePoint Online.

  6. Click OK. It can take up to 24 hours for the change to take effect.

Brīdinājums.: Before you allow custom script on sites in your organization, make sure you understand the security implications.

To allow custom script on a particular site collection immediately, use the following Microsoft PowerShell command (learn more about the SharePoint Online Management Shell):

Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0

If you change this setting for a user's OneDrive or a user-created site, it will be overriden by the Custom Script setting in the admin center within 24 hours.

When users are prevented from running custom script on OneDrive or user-created sites, site collection owners and site owners won't be able to create new items such as templates, solutions, themes, and help file collections. If you allowed custom script in the past, items that were already created will still work.

The following site settings are unavailable when users are prevented from running custom script:

Vietnes līdzeklis

Darbība

Piezīmes

Vietnes saglabāšana veidnes formātā

No longer available in Site Settings

Users can still build sites from templates created before custom script was blocked.

Dokumentu bibliotēkas saglabāšana veidnes formātā

No longer available in Library Settings

Users can still build document libraries from templates created before custom script was blocked.

Risinājumu galerija

No longer available in Site Settings

Users can still use solutions created before custom script was blocked.

Dizainu galerija

No longer available in Site Settings

Users can still use themes created before custom script was blocked.

Palīdzības iestatījumi

No longer available in Site Settings

Users can still access help file collections available before custom script was blocked.

HTML Field Security

No longer available in Library Settings

Users can still use HTML field security that they set up before custom script was blocked.

Smilškastes risinājumi

Solution Gallery is no longer available in Site Settings

Users can’t add, manage, or upgrade sandbox solutions. They can still run sandbox solutions that were deployed before custom script was blocked.

SharePoint Designer

Pages that are not HTML can no longer be updated.

Apstrādes saraksts: vairs nedarbosies opcijas Formas izveide un Pielāgota darbība .

Apakšvietnes: opcijas Jauna apakšvietne un Dzēst vietni novirza uz lapu Vietnes iestatījumi pārlūkprogrammā.

Datu avoti: poga Rekvizīti vairs nav pieejama.

Users can still open data sources.

Uploading files that potentially include script

The following file types can no longer be uploaded to a library

.asmx

.ascx

.aspx

.htc

JAR

.master

.swf

.xap

.xsf

Existing files in the library are not impacted.

The following web parts and features are unavailable to site collection owners and site owners when you prevent them from running custom script.

Tīmekļa daļu kategorija

Tīmekļa daļa

Biznesa dati

Biznesa datu darbības

Biznesa datu vienums

Biznesa datu vienumu veidotājs

Biznesa datu saraksts

Biznesa datu saistītais saraksts

Excel Web Access

Indikatora informācija

Statusu saraksts

Visio Web Access

Kopiena

Par šo kopienu

Pievienošanās

Mana dalība

Rīki

Kas notiek

Satura ritināšana

Kategorijas

Projekta kopsavilkums

Atbilstīgie dokumenti

RSS skatītājs

Vietņu apkopotājs

Vietnes kategorijā

Termina rekvizīts

Laika grafiks

WSRP skatītājs

XML skatītājs

Dokumentu kopas

Dokumentu kopas saturs

Dokumentu kopas rekvizīti

Formas

HTML formas tīmekļa daļa

Multivide un saturs

Satura redaktors

Skriptu redaktors

Silverlight tīmekļa daļa

Meklēšana

Precizēšana

Meklēšanas lodziņš

Meklēšanas navigācija

Meklēšanas rezultāti

Meklēšanas saturs

Kataloga vienuma atkārtota lietošana

Sabiedriskā sadarbība

Kontaktinformācija

Piezīmju dēlis

Organizācijas pārlūks

Vietnes plūsma

Atzīmju mākonis

Lietotāja uzdevumi

Master Page Gallery

Can't create or edit master pages

Publishing Sites

Can't create or edit master pages and page layouts

Before you prevent custom script on sites where you previously allowed it, we recommend communicating the change well in advance so users can understand the impact of it. Otherwise, users who are accustomed to changing themes or adding web parts on their sites will suddenly not be able to and will see the following error message.

Kļūdas ziņojums, kas tiek parādīts, ja skriptēšana ir atspējota vietnē vai vietņu kolekcijā

Communicating the change in advance can reduce user frustration and support calls.

Paplašiniet savas Office prasmes
Iepazīties ar apmācību
Esiet pirmais, kas saņem jaunās iespējas
Pievienoties Office Insider programmai

Vai šī informācija bija noderīga?

Paldies par jūsu atsauksmēm!

Paldies par atsauksmēm! Šķiet, ka varētu būt noderīgi sazināties ar kādu no mūsu Office atbalsta aģentiem.

×