Method: accounts.userLinks.audit

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

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 DeleteUserLink 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 AuditUserLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to AuditUserLinks must match the call that provided the page token.

Response body

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

Authorization Scopes

Requires one of the following OAuth scopes:

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