Google Analytics

Profile User Links

The profileUserLinks collection is a set of entityUserLink resources, each of which describes the view (profile) permissions for a single user.

For a list of methods for this resource, see the end of this page.

Resource representations

JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.

{
  "id": string,
  "kind": "analytics#entityUserLink",
  "selfLink": string,
  "selfLink": string,
  "selfLink": string,
  "entity": {
    "accountRef": {
      "id": string,
      "kind": "analytics#accountRef",
      "href": string,
      "name": string
    },
    "webPropertyRef": {
      "id": string,
      "kind": "analytics#webPropertyRef",
      "href": string,
      "accountId": string,
      "internalWebPropertyId": string,
      "name": string
    },
    "profileRef": {
      "id": string,
      "kind": "analytics#profileRef",
      "href": string,
      "accountId": string,
      "webPropertyId": string,
      "internalWebPropertyId": string,
      "name": string
    }
  },
  "userRef": {
    "kind": "analytics#userRef",
    "id": string,
    "email": string
  },
  "permissions": {
    "effective": [
      string
    ],
    "local": [
      string
    ]
  }
}
Property name Value Description Notes
entity object Entity for this link. It can be an account, a web property, or a view (profile).
entity.accountRef nested object Account for this link.
entity.accountRef.href string Link for this account.
entity.accountRef.id string Account ID.
entity.accountRef.kind string Analytics account reference.
entity.accountRef.name string Account name.
entity.profileRef nested object View (Profile) for this link.
entity.profileRef.accountId string Account ID to which this view (profile) belongs.
entity.profileRef.href string Link for this view (profile).
entity.profileRef.id string View (Profile) ID.
entity.profileRef.internalWebPropertyId string Internal ID for the web property to which this view (profile) belongs.
entity.profileRef.kind string Analytics view (profile) reference.
entity.profileRef.name string Name of this view (profile).
entity.profileRef.webPropertyId string Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
entity.webPropertyRef nested object Web property for this link.
entity.webPropertyRef.accountId string Account ID to which this web property belongs.
entity.webPropertyRef.href string Link for this web property.
entity.webPropertyRef.id string Web property ID of the form UA-XXXXX-YY.
entity.webPropertyRef.internalWebPropertyId string Internal ID for this web property.
entity.webPropertyRef.kind string Analytics web property reference.
entity.webPropertyRef.name string Name of this web property.
id string Entity user link ID
kind string Resource type for entity user link.
permissions object Permissions the user has for this entity.
permissions.effective[] list Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
permissions.local[] list Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
userRef nested object User reference.
userRef.email string Email ID of this user.
userRef.id string User ID.
userRef.kind string Resource type for user reference link.

Methods

delete
Removes a user from the given view (profile).
insert
Adds a new user to the given view (profile).
list
Lists profile-user links for a given view (profile).
update
Updates permissions for an existing user on the given view (profile).

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.