Restrict eligible Google accounts for saving PDF files to Google Drive from the Google Chrome PDF Viewer
Explanation
Contains a regular expression to determine eligible Google accounts for saving PDF files to Google Drive from the Google Chrome PDF Viewer.
An error is displayed if a user tries to upload a PDF file to Google Drive using an account that does not match this pattern.
If this policy is left not set or blank, then the user can use any Google account to save PDF files to Google Drive.
Example value: .*@example\.com
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Google\ChromeHKEY_CURRENT_USER\Software\Policies\Google\Chrome- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: chrome/RestrictPdfSaveToGoogleDriveAccountsToPattern
$k = 'HKLM:\Software\Policies\Google\Chrome'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Restrict eligible Google accounts for saving PDF files to Google Drive from the Google Chrome PDF Viewer
Set-ItemProperty -Path $k -Name 'RestrictPdfSaveToGoogleDriveAccountsToPattern' -Value '<value>' -Type StringDisable
# Disable: chrome/RestrictPdfSaveToGoogleDriveAccountsToPattern
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": chrome/RestrictPdfSaveToGoogleDriveAccountsToPattern
$k = 'HKLM:\Software\Policies\Google\Chrome'
Remove-ItemProperty -Path $k -Name 'RestrictPdfSaveToGoogleDriveAccountsToPattern' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Restrict eligible Google accounts for saving PDF files to Google Drive from the Google Chrome PDF ViewerRestrictPdfSaveToGoogleDriveAccountsToPattern | Text boxtext | RestrictPdfSaveToGoogleDriveAccountsToPattern | REG_SZ | Max length: 1000000 |
Application
Google Chrome (Google) — November 2026 templates
Official templates downloaded on November 12, 2026.