Turn Apps Script on or off for users

Supported for all Google Workspace, Cloud Identity, and G Suite editions

As an administrator, you can turn Google Apps Script on or off for people in your organization. Users who have Apps Script turned on can use it to create, edit, and execute Apps Script scripts. By default, Apps Script is turned on for all users in your organization.

How it works

The on/off controls for Apps Script, Drive and Docs, and Google Workspace Marketplace interact in the following ways:

  • When Apps Script is off:
    • Users can’t create or edit scripts.
    • Script and trigger executions are blocked. Blocked scripts include web apps, custom functions, and macros recorded in Sheets. Blocked trigger executions include simple triggers and installable triggers.
    • In AppSheet, Apps Script scripts called using “Call a script” don’t run.
    • In Google Ads Script, script executions, previews, and scheduled scripts are blocked.
    • In Looker Studio, Community connectors don’t fetch data. Users see an error in charts that use a community connector.
    • Users can still install and run Google Workspace Marketplace apps and add-ons created with Apps Script, such as Google Workspace Add-ons and Editor Add-ons, if allowed by Marketplace user install settings.
  • When Apps Script is off for only some users, scripts owned by those users can still be accessed, edited, and run by other users who have Apps Script turned on and access to the script.
  • When Apps Script is on but Drive and Docs is off, users can’t open Apps Script to view, create, or edit scripts. Existing scripts will still execute.

Control who can use Apps Script

Before you begin: To turn a service on or off for certain users, put their accounts in an organizational unit (to control access by department) or add them to an access group (to allow access for users across or within departments).

  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. In the Admin console, go to Menu and then Appsand thenGoogle Workspaceand thenDrive and Docs.
  3. Click Google Apps Script.
  4. To turn a service on or off for everyone in your organization, click On for everyone or Off for everyone, and then click Save.

  5. (Optional) To turn a service on or off for an organizational unit:
    1. At the left, select the organizational unit.
    2. To change the Service status, select On or Off.
    3. Choose one:
      • If the Service status is set to Inherited and you want to keep the updated setting, even if the parent setting changes, click Override.
      • If the Service status is set to Overridden, either click Inherit to revert to the same setting as its parent, or click Save to keep the new setting, even if the parent setting changes.
        Note: Learn more about organizational structure.
  6. To turn on a service for a set of users across or within organizational units, select an access group. For details, go to Use groups to customize service access.

Changes can take up to 24 hours but typically happen more quickly. Learn more

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
15070890458803288886
true
Search Help Center
true
true
true
true
true
73010
false
false