Apps Script and Google Cloud Projects: OAuth Consent Screen, Scopes, and App Verification
Move Apps Script to a standard Google Cloud project: when you need one, OAuth consent in Google Auth Platform, internal vs external, scopes, and verification.
Last checked against Google's official documentation on . See what changed

Apps Script is often the first code anyone writes on Google Workspace. A form that emails a manager, a sheet that pulls data from an API, a script that tidies up Drive permissions. Sooner or later one of those scripts needs something more: a Google Cloud API, proper logging, or sharing beyond its author. That is when admins meet the OAuth consent screen, and the confusing warnings that come with it.
This guide explains how Apps Script relates to Google Cloud projects, when to switch to a standard project, how to configure consent in the Google Auth Platform, and how admins keep scripts under control.
Key Takeaways
- Every script has a hidden default Cloud project; switch to a standard project when you need control.
- Consent settings now live in the Google Auth Platform section of the Cloud console.
- Internal apps are limited to your organization and avoid most verification work.
- Testing status means a 100-user limit and seven-day re-consent.
- Unverified external apps can add only 100 users ever, so verify or stay internal.
Table of contents
Open Table of contents
- Default Versus Standard Cloud Projects
- The Google Auth Platform
- Internal Versus External
- Testing Versus In Production
- Scopes and Verification
- Admin Controls in the Admin Console
- A Checklist for Internal Scripts
- Common Errors and What They Mean
- Governance for Scripts at Scale
- Logging and Alerts for Important Scripts
- Conclusion
Default Versus Standard Cloud Projects

When you create an Apps Script project, Google creates a default Cloud project behind it. Most users can’t see it in the Cloud console (admins can), Google manages it, and it is removed when you delete the script or switch to a standard project. It is fine for personal automations.
A standard Cloud project is one you create in your organization and link to the script. You need one when you want to:
- See script logs in Cloud Logging, view Error Reporting, and set up error alerts.
- Configure the OAuth consent screen with your company name and logo, and verify the OAuth client.
- Publish an add-on to the Workspace Marketplace.
- Run script functions through the Apps Script API (
scripts.run). - Let a group, not one person, manage the script’s Cloud settings.
To switch, create the project in the right folder (see our resource hierarchy guide), copy its project number, then in the Apps Script editor open Project Settings > Google Cloud Project > Change project, paste it, and click Set project. You need the Project Browser and OAuth Config Editor roles (or equivalent) on the project, and a project that Apps Script created automatically can’t be used. Set up Branding first so users see your app name when they authorize.
The switch is one-way: you can’t go back to a default project. Previously authorized users must authorize again, advanced services must be re-enabled in the new project, and scripts using the built-in Drive service need the Drive API turned on there.
The Google Auth Platform
What used to be called the OAuth consent screen is now the Google Auth Platform in the Cloud console. Google’s help center splits it into sections:
| Section | What you set |
|---|---|
| Overview | Status and metrics for the app |
| Branding | App name, logo, support email, home page, privacy policy |
| Audience | User type (Internal or External), publishing status, test users |
| Clients | OAuth client IDs for web, desktop, and other apps |
| Data access | The scopes the app requests |
For an Apps Script tool used inside the company, the important choices are on the Audience page.
Internal Versus External
Internal apps are available only to users in your Google Cloud organization. Anyone outside gets an org_internal error. This is the right setting for almost every internal script, and it avoids most verification requirements.
External apps are available to any Google account. They start in Testing status and must be published to reach a wider audience.
Choose Internal unless the script genuinely serves customers, partners, or personal Gmail users.
Testing Versus In Production
External apps in Testing have two limits that confuse users:
- Only 100 test users, added by email on the Audience page.
- Test users’ authorizations expire after seven days, along with refresh tokens, unless the app requests only basic profile scopes (
openid,userinfo.email,userinfo.profile). In that case users don’t even need to be on the test list.
The seven-day expiry explains the common complaint that a script “keeps asking for permission every week.” The fix is to publish the app or switch it to Internal.
Scopes and Verification
Scopes are the permissions an app asks for, such as reading Gmail or editing Drive files. Google groups them into non-sensitive, sensitive, and restricted scopes. Restricted scopes cover the most powerful access, such as reading all Gmail messages.
For external apps:
- Requesting sensitive or restricted scopes shows an unverified app warning until Google verifies the app.
- Unverified apps can add only 100 new users over the project’s lifetime, and Google says this cap cannot be reset.
- Verification requires a verified domain, a privacy policy, and a justification for each scope. Restricted scopes may also need a security assessment.
You can reduce all of this by asking for narrower scopes. In Apps Script, add an oauthScopes list to the manifest (appsscript.json) so the script requests only what it uses, for example drive.file instead of full drive access:
{
"oauthScopes": [
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/script.send_mail"
]
}
Admin Controls in the Admin Console
Workspace admins have the final say over which apps can access company data, including Google Workspace Marketplace apps. Under Security > Access and data control > API controls:
- Manage third-party app access lets you mark apps as Trusted, Limited, Specific Google data (only the scopes you list), or Blocked, and see which apps users have already authorized.
- Unconfigured third-party apps can be allowed, restricted to basic sign-in, or blocked.
- Manage Google Services lets you restrict whole services to Trusted apps, or restrict only a predefined list of high-risk scopes for Gmail, Drive, Docs, and Chat.
A good policy is to block unconfigured apps that request high-risk scopes, then trust internal scripts by their OAuth client ID after a quick review. Our security hardening guide includes this in its OAuth app controls step.
Turning Apps Script on or off
Apps Script itself has a service switch at Apps > Google Workspace > Drive and Docs > Google Apps Script, which needs the Drive and Docs admin privilege. It is on by default for all users and guests, works in every Workspace and Cloud Identity edition, and can be set per organizational unit or access group. Changes can take up to 24 hours.
Turning it off is broader than it sounds. Users can’t create or edit scripts, and their script and trigger executions are blocked, including web apps, custom functions, Sheets macros and installable triggers. AppSheet “Call a script” actions, Google Ads scripts and Looker community connectors also stop. Marketplace add-ons built with Apps Script still install and run if your Marketplace settings allow them. Scripts owned by a user with Apps Script off can still be run by colleagues who have it on, so plan a pilot group before switching it off widely.
Gemini in Apps Script
Since November 12, 2026, the Gemini side panel in the Apps Script editor has been generally available after a public beta, rolling out over up to 15 days. Users describe a task in plain language and Gemini drafts the script, can add time-based triggers, and proposes changes block by block for the user to accept or reject. A Fix errors button in the execution log explains an error and suggests a fix. It is included in Business Standard and Plus, Enterprise Standard and Plus, Google AI Pro for Education and the AI Expanded Access add-on.
For admins, nothing about the trust model changes: Google says scripts still run with the user’s existing permissions and the standard OAuth consent screen, so the controls above apply to scripts Gemini writes too. Access to Gemini itself follows your Workspace generative AI settings by organizational unit or group, Gemini respects the Apps Script service setting, and script activity shows up in the Drive and OAuth audit logs. More people writing scripts means more consent requests, so review the API controls before you announce the feature.
A Checklist for Internal Scripts
- Create a standard Cloud project in a dedicated folder, named for the script.
- Configure Branding and set the user type to Internal.
- Declare minimal scopes in the manifest.
- Link the script to the project and grant a group Editor or a narrower role on it.
- Turn on Cloud Logging alerts for errors.
- Trust the client ID in the Admin console API controls.
- Record the owner and purpose in project labels.
Common Errors and What They Mean
“Access blocked: This app’s request is invalid” or “has not completed the Google verification process.” The app is External, requests sensitive or restricted scopes, and the user is not a listed test user. Add them as a test user, switch the app to Internal if everyone is in your organization, or submit it for verification.
“Error 403: org_internal.” The app is Internal and the user is signing in with an account outside your Cloud organization, such as a personal Gmail address. Ask them to use their company account.
“This app is blocked” when users authorize a script. An admin has restricted access to the requested scopes. Review the app in the Admin console under API controls and mark it as Trusted if it is approved.
A consent screen error when changing the project. Check that the standard Cloud project has Branding and Audience set up in the Google Auth Platform, and that you hold the OAuth Config Editor role on it.
Users are asked to re-authorize every week. The app is in Testing status. Publish it or move it to Internal.
Governance for Scripts at Scale
A company with hundreds of scripts needs a light process, not a heavy one:
- Inventory. The Admin console’s app access page shows which scripts users have authorized and with which scopes.
- Classify. Personal automations can stay on default projects. Shared or business-critical scripts move to standard projects with owners.
- Review scopes. Anything requesting full Gmail or Drive access gets a closer look.
- Plan for departures. Scripts are owned by the user who created them. Transfer important ones to a shared drive or a service owner before the creator leaves; our user lifecycle guide includes this step in offboarding.
Logging and Alerts for Important Scripts
Once a script runs in a standard Cloud project, its console.log and console.error output goes to Cloud Logging. That turns silent failures into alerts:
- In Cloud Logging, filter on the script’s project and severity
ERROR. - Create a log-based alert from that filter.
- Send the alert to a Google Chat space or email group owned by the team that depends on the script.
Write meaningful errors in the script so the alert explains itself:
function nightlyExport() {
try {
exportTimesheets();
} catch (e) {
console.error('nightlyExport failed: ' + e.message);
throw e;
}
}
Apps Script also has execution quotas, such as maximum run time per execution and daily limits on services like email sending. If a script exists only to send reminders or chase replies, a purpose-built tool is often simpler; our guide to automated follow-up emails in Gmail compares the options. When a business process depends on a script that is close to those limits, it is time to move the work to Cloud Run, as described in our guides later in this series.
Conclusion
Apps Script stays simple until it is shared, and then the Cloud project behind it becomes the thing that matters. Move important scripts to standard projects, keep them Internal, request narrow scopes, and use API controls to decide what runs in your Google Workspace domain.
Tomorrow’s guide covers domain-wide delegation, the most powerful and most dangerous way for an app to access Workspace data.
Official Google documentation:
- Google Cloud projects for Apps Script
- Manage app audience in Google Auth Platform
- OAuth production readiness overview
- Turn Apps Script on or off for users
- Gemini in Apps Script is generally available (Workspace Updates)
Related reading:
- Google AppSheet for IT Admins: the no-code alternative to scripts.
- Google Workspace User Lifecycle Automation: scripts in onboarding and offboarding.
- Google Cloud Resource Hierarchy Explained: where script projects belong.
This guide contains referral or affiliate links. If you sign up through one, Workspace Blog may earn a commission at no extra cost to you. Read our referral and advertising disclosure.
Frequently Asked Questions
- What is the difference between a default and a standard Google Cloud project in Apps Script?
- Every Apps Script project gets a hidden default Cloud project that Google manages. A standard Cloud project is one you create and control yourself. You need a standard project to publish a Workspace add-on, verify the script's OAuth client, call the script through the Apps Script API, view Cloud Logging or Error Reporting, customize the consent screen, or control the project's Cloud settings yourself.
- Do internal Apps Script tools need OAuth verification?
- Apps with the Internal user type are limited to users in your Google Cloud organization, and they generally do not need Google's OAuth verification. External apps that request sensitive or restricted scopes show an unverified app warning until they are verified.
- What is the unverified app user cap?
- Google says apps that show the unverified app screen can add only 100 new users over the lifetime of the project, and the cap cannot be reset. Verification removes the warning and the cap.
- Why do my test users have to re-authorize every week?
- Apps in the Testing publishing status are limited to 100 listed test users, and Google expires their authorizations seven days after consent, unless the app requests only basic profile scopes. Move the app to In production, or use the Internal user type, to stop the weekly re-consent.
- How can admins control which Apps Script projects can access user data?
- In the Admin console under Security > Access and data control > API controls, admins can mark apps as trusted, limited, specific Google data, or blocked, and restrict high-risk scopes for services such as Gmail, Drive, Docs, and Chat. Unconfigured third-party apps can also be blocked by default.