Skip to content

Diagnostic reference

Sorry, the script has conflicting authorizations

Fix 'Sorry, the script has conflicting authorizations. Try signing out of other active G Suite accounts' in Apps Script web apps, add-ons, and Sheets.

Updated December 6, 2026

Apps Script error

Sorry, the script has conflicting authorizations. Try signing out of other active G Suite accounts.

What it means

Google Apps Script cannot always reconcile OAuth cookies when a browser session is signed into two or more Google or Workspace accounts at the same time (for example, a personal Gmail as account 0 and a Workspace account as account 1). Opening a web app, sidebar, dialog, or Editor add-on under the secondary account triggers a conflicting-authorization error before your script even runs.

Related error messages

  • Sorry, unable to open the file at this time. Please check the address and try again.
  • Google Drive refused to connect (Apps Script web app multi-login)
  • ScriptError: Authorization is required to perform that action.

Before and after

The code before and after the fix.

Problem 2 changed lines
// Multi-login browser sessions (/u/0/, /u/1/) can fail before doGet() runs:
// "Sorry, the script has conflicting authorizations. Try signing out of other active G Suite accounts."
function doGet() {
  return HtmlService.createHtmlOutput('<h1>Dashboard</h1>');
}
Fixed 4 changed lines
// 1. Open the script, Sheet, or web app in a single-account Chrome profile
//    (or an Incognito window) so only one Google account cookie is active.
// 2. Keep the original Web App "Execute as" setting; do not switch a per-user
//    web app to "Execute as: Me" just to bypass a browser multi-login conflict.
function doGet() {
  return HtmlService.createHtmlOutput('<h1>Dashboard</h1>');
}

How to fix it

  • Open the spreadsheet, Apps Script editor, or web app URL in a dedicated Chrome profile signed into only the intended Google account (or an Incognito window).
  • If you must stay in the same browser window, sign out of all Google accounts and sign back into the target Workspace account first so it becomes the default (/u/0/) session.
  • Revoke stale approvals at https://myaccount.google.com/permissions for the affected account and authorize the script once from a single-account profile.
  • Share single-account Chrome profile setup instructions with teammates who switch between personal Gmail and Workspace accounts.

Things to check

  • This is a Google multi-login session conflict in the browser; JavaScript inside your script cannot work around it once Google blocks the request.
  • Do not switch a web app from "User accessing the web app" to "Execute as: Me" to work around multi-login: doing so runs server code with your own account permissions and can expose spreadsheets or files to callers who lack access unless you redesign access controls.
  • Chrome profiles keep separate cookies per Google account so you do not have to sign out repeatedly.

In the Apps Script editor

Catch errors like this before clicking Run.

myFunction (published as Error Checker for Google Apps Script on the Chrome Web Store) checks your code while you edit at script.google.com. Diagnostics, autocomplete, and rule-based quick fixes are free without an account, run in your browser, and request no Google Drive, Gmail, or Apps Script project OAuth scopes. Writing Apps Script with an AI coding agent? Connect the Apps Script MCP server to run the same static checks before pasting code.