REST Resource: properties.accessBindings

  • AccessBinding is a resource that binds a user to a set of roles within Google Analytics.

  • You can manage AccessBindings through various methods like creating, deleting, updating, and listing them for accounts or properties.

  • AccessBindings use a JSON representation to define the user, their roles, and the target resource (account or property).

  • Roles granted via AccessBindings can include predefined options such as viewer, analyst, editor, admin, and more.

  • Available methods for interacting with AccessBindings include batch operations (create, delete, get, update) and individual operations (create, delete, get, list, patch).

Resource: AccessBinding

A binding of a user to a set of roles.

JSON representation
{
  "name": string,
  "roles": [
    string
  ],

  // Union field access_target can be only one of the following:
  "user": string
  // End of list of possible types for union field access_target.
}
Fields
name

string

Output only. Resource name of this binding.

Format: accounts/{account}/accessBindings/{accessBinding} or properties/{property}/accessBindings/{accessBinding}

Example: "accounts/100/accessBindings/200"

roles[]

string

A list of roles for to grant to the parent resource.

Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data

For users, if an empty list of roles is set, this AccessBinding will be deleted.

Union field access_target. The target for which to set roles for. access_target can be only one of the following:
user

string

If set, the email address of the user to set roles for. Format: "someuser@gmail.com"

Methods

batchCreate

Creates information about multiple access bindings to an account or property.

batchDelete

Deletes information about multiple users' links to an account or property.

batchGet

Gets information about multiple access bindings to an account or property.

batchUpdate

Updates information about multiple access bindings to an account or property.

create

Creates an access binding on an account or property.

delete

Deletes an access binding on an account or property.

get

Gets information about an access binding.

list

Lists all access bindings on an account or property.

patch

Updates an access binding on an account or property.