For a list of methods for this resource, see the end of this page.
Resource representations
Information about the user, the user's Drive, and system capabilities.
{ "kind": "drive#about", "user": { "kind": "drive#user", "displayName": string, "photoLink": string, "me": boolean, "permissionId": string, "emailAddress": string }, "storageQuota": { "limit": long, "usage": long, "usageInDrive": long, "usageInDriveTrash": long }, "importFormats": { (key): [ string ] }, "exportFormats": { (key): [ string ] }, "maxImportSizes": { (key): long }, "maxUploadSize": long, "appInstalled": boolean, "folderColorPalette": [ string ], "teamDriveThemes": [ { "id": string, "backgroundImageLink": string, "colorRgb": string } ], "driveThemes": [ { "id": string, "backgroundImageLink": string, "colorRgb": string } ], "canCreateTeamDrives": boolean, "canCreateDrives": boolean }
Property name | Value | Description | Notes |
---|---|---|---|
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "drive#about" . |
|
user |
nested object |
The authenticated user. | |
user.kind |
string |
Identifies what kind of resource this is. Value: the fixed string "drive#user" . |
|
user.displayName |
string |
A plain text displayable name for this user. | |
user.photoLink |
string |
A link to the user's profile photo, if available. | |
user.me |
boolean |
Whether this user is the requesting user. | |
user.permissionId |
string |
The user's ID as visible in Permission resources. | |
user.emailAddress |
string |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. | |
storageQuota |
object |
The user's storage quota limits and usage. All fields are measured in bytes. | |
storageQuota.limit |
long |
The usage limit, if applicable. This will not be present if the user has unlimited storage. | |
storageQuota.usage |
long |
The total usage across all services. | |
storageQuota.usageInDrive |
long |
The usage by all files in Google Drive. | |
storageQuota.usageInDriveTrash |
long |
The usage by trashed files in Google Drive. | |
importFormats |
object |
A map of source MIME type to possible targets for all supported imports. | |
importFormats.(key)[] |
list |
||
exportFormats |
object |
A map of source MIME type to possible targets for all supported exports. | |
exportFormats.(key)[] |
list |
||
maxImportSizes |
object |
A map of maximum import sizes by MIME type, in bytes. | |
maxImportSizes.(key) |
long |
||
maxUploadSize |
long |
The maximum upload size in bytes. | |
appInstalled |
boolean |
Whether the user has installed the requesting app. | |
folderColorPalette[] |
list |
The currently supported folder colors as RGB hex strings. | |
teamDriveThemes[] |
list |
Deprecated - use driveThemes instead. |
|
teamDriveThemes[].id |
string |
Deprecated - use driveThemes/id instead. |
|
teamDriveThemes[].backgroundImageLink |
string |
Deprecated - use driveThemes/backgroundImageLink instead. |
|
teamDriveThemes[].colorRgb |
string |
Deprecated - use driveThemes/colorRgb instead. |
|
canCreateTeamDrives |
boolean |
Deprecated - use canCreateDrives instead. |
|
driveThemes[] |
list |
A list of themes that are supported for shared drives. | |
driveThemes[].id |
string |
The ID of the theme. | |
driveThemes[].backgroundImageLink |
string |
A link to this theme's background image. | |
driveThemes[].colorRgb |
string |
The color of this theme as an RGB hex string. | |
canCreateDrives |
boolean |
Whether the user can create shared drives. |
Methods
- get
- Gets information about the user, the user's Drive, and system capabilities.