Method: users.getCapabilities

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

string

Required. The resource name of the user. Only "users/me/capabilities" is supported.

Query parameters

Parameters
customer

string

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

string

Output only. Resource name for the user capabilities.

canAccessLabelManager

boolean

Output only. Whether the user is allowed access to the label manager.

canAdministrateLabels

boolean

Output only. Whether the user is an administrator for the shared labels feature.

canCreateSharedLabels

boolean

Output only. Whether the user is allowed to create new shared labels.

canCreateAdminLabels

boolean

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.