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 |
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 |
This is always |
id |
The permission ID. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/docshttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.apps.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://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.