Method: users.getCapabilities

Stay organized with collections Save and categorize content based on your preferences.

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.

Request body

The request body must be empty.

Response body

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

The capabilities of a user.

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 OAuth 2.0 Overview.