Declare Permissions

To use most chrome.* APIs, your extension or app must declare its intent in the "permissions" field of the manifest. Each permission can be either one of a list of known strings (such as "geolocation") or a match pattern that gives access to one or more hosts. Permissions help to limit damage if your extension or app is compromised by malware. Some permissions are also displayed to users before installation, as detailed in Permission Warnings.

If an API requires you to declare a permission in the manifest, then its documentation tells you how to do so. For example, the Storage page shows you how to declare the "storage" permission.

Here's an example of the permissions part of a manifest file:


"permissions": [
  "serial",
  "storage",
  "videoCapture"
],

The following table lists the currently available permissions:

Permission Description
"alarms" Gives your app access to the chrome.alarms API.
"audio" Gives your app access to the chrome.audio API.
"audioCapture" Requests that the app be granted permissions to capture audio directly from the user's Microphone via the getUserMedia API.
"audioModem" Gives your app access to the chrome.audioModem API.
"background"

Makes Chrome start up early and and shut down late, so that apps and extensions can have a longer life.

When any installed hosted app, packaged app, or extension has "background" permission, Chrome runs (invisibly) as soon as the user logs into their computer—before the user launches Chrome. The "background" permission also makes Chrome continue running (even after its last window is closed) until the user explicitly quits Chrome.

Note: Disabled apps and extensions are treated as if they aren't installed.

You typically use the "background" permission with a background page, event page or (for hosted apps) a background window.

"browser" Gives your app access to the chrome.browser API.
"clipboardRead" Required if the extension or app uses document.execCommand('paste').
"clipboardWrite" Indicates the extension or app uses document.execCommand('copy') or document.execCommand('cut'). This permission is required for hosted apps; it's recommended for extensions and packaged apps.
"contextMenus" Gives your app access to the chrome.contextMenus API.
"copresence" Gives your app access to the chrome.copresence API.
"desktopCapture" Gives your app access to the chrome.desktopCapture API.
"diagnostics" Gives your app access to the chrome.diagnostics API.
"dns" Gives your app access to the chrome.dns API.
"documentScan" Gives your app access to the chrome.documentScan API.
"experimental" Required if the extension or app uses any chrome.experimental.* APIs.
"fileBrowserHandler" Gives your app access to the chrome.fileBrowserHandler API.
"fileSystem" Gives your app access to the chrome.fileSystem API.
"fileSystemProvider" Gives your app access to the chrome.fileSystemProvider API.
"gcm" Gives your app access to the chrome.gcm API.
"geolocation" Allows the extension or app to use the proposed HTML5 geolocation API without prompting the user for permission.
"hid" Gives your app access to the chrome.hid API.
"identity" Gives your app access to the chrome.identity API.
"idle" Gives your app access to the chrome.idle API.
"location" Gives your app access to the chrome.location API.
"mdns" Gives your app access to the chrome.mdns API.
"mediaGalleries" Gives your app access to the chrome.mediaGalleries API.
"nativeMessaging" Gives your app access to the native messaging API.
"notificationProvider" Gives your app access to the chrome.notificationProvider API.
"notifications" Allows the extension to use the proposed HTML5 notification API without calling permission methods (such as checkPermission()). For more information see Desktop Notifications.
"platformKeys" Gives your app access to the chrome.platformKeys API.
"pointerLock" Required to use Pointer Lock via calls to requestPointerLock or Pepper's Mouse Lock API. See Other APIs for behavior differences.
"power" Gives your app access to the chrome.power API.
"printerProvider" Gives your app access to the chrome.printerProvider API.
"serial" Gives your app access to the chrome.serial API.
"signedInDevices" Gives your app access to the chrome.signedInDevices API.
"socket" Gives your app access to the chrome.socket API.
"storage" Gives your app access to the chrome.storage API.
"syncFileSystem" Required if the app uses the chrome.syncFileSystem API to save and synchronize data on Google Drive.
"system.cpu" Gives your app access to the chrome.system.cpu API.
"system.display" Gives your app access to the chrome.system.display API.
"system.memory" Gives your app access to the chrome.system.memory API.
"system.network" Gives your app access to the chrome.system.network API.
"system.storage" Gives your app access to the chrome.system.storage API.
"tts" Gives your app access to the chrome.tts API.
"unlimitedStorage" Provides an unlimited quota for storing HTML5 client-side data, such as databases and local storage files. Without this permission, the extension or app is limited to 5 MB of local storage.

Note: This permission applies only to Web SQL Database and application cache (see issue 58985). Also, it doesn't currently work with wildcard subdomains such as http://*.example.com.

"usb" Gives your app access to the chrome.usb API.
"videoCapture" Requests that the app be granted permissions to capture video directly from the user's Web Cam via the getUserMedia API.
"vpnProvider" Gives your app access to the chrome.vpnProvider API.
"wallpaper" Gives your app access to the chrome.wallpaper API.
"webview" Required if the app uses the Webview Tag to embed live content from the web in the packaged app.