Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

Method: accounts.userLinks.audit

Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles.

If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the userLinks.delete command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.

HTTP request

POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/userLinks:audit

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Example format: accounts/1234

Request body

The request body contains data with the following structure:

JSON representation
{
  "pageSize": integer,
  "pageToken": string
}
Fields
pageSize

integer

The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 1000 user links will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000.

pageToken

string

A page token, received from a previous userLinks.audit call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to userLinks.audit must match the call that provided the page token.

Response body

If successful, the response body contains an instance of AuditUserLinksResponse.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/analytics.manage.users.readonly