- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Gets the user capabilities.
HTTP request
GET https://drivelabels.googleapis.com/v2beta/{name=users/*/capabilities}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the user. Only "users/me/capabilities" is supported. |
Query parameters
Parameters | |
---|---|
customer |
The customer to scope this request to. For example: "customers/abcd1234". If unset, will return settings within the current customer. |
Request body
The request body must be empty.
Response body
The capabilities of a user.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "name": string, "canAccessLabelManager": boolean, "canAdministrateLabels": boolean, "canCreateSharedLabels": boolean, "canCreateAdminLabels": boolean } |
Fields | |
---|---|
name |
Output only. Resource name for the user capabilities. |
canAccessLabelManager |
Output only. Whether the user is allowed access to the label manager. |
canAdministrateLabels |
Output only. Whether the user is an administrator for the shared labels feature. |
canCreateSharedLabels |
Output only. Whether the user is allowed to create new shared labels. |
canCreateAdminLabels |
Output only. Whether the user is allowed to create new admin labels. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.labels.readonly
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/drive.admin.labels.readonly
For more information, see the Authorization guide.