Method: permissions.getIdForEmail

Returns the permission ID for an email address.

HTTP request

GET https://www.googleapis.com/drive/v2/permissionIds/{email}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
email

string

The email address for which to return a permission ID

Request body

The request body must be empty.

Response body

An ID for a user or group as seen in Permission items.

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "id": string
}
Fields
kind

string

This is always drive#permissionId.

id

string

The permission ID.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/docs
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.appdata
  • https://www.googleapis.com/auth/drive.apps.readonly
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.photos.readonly
  • https://www.googleapis.com/auth/drive.readonly

Some scopes are restricted and require a security assessment for your app to use them. For more information, see the Authorization guide.