Method: organizations.userGroups.list

Returns a list of user groups in the specified GMP organization.

HTTP request

GET https://marketingplatformadmin.googleapis.com/v1alpha/{parent=organizations/*}/userGroups

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of user groups to return in one call. The service may return fewer than this value.

If unspecified, at most 50 user groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

pageToken

string

Optional. A page token, received from a previous userGroups.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to userGroups.list must match the call that provided the page token.

Request body

The request body must be empty.

Response body

Response message for userGroups.list RPC.

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

JSON representation
{
  "userGroups": [
    {
      object (UserGroup)
    }
  ],
  "nextPageToken": string
}
Fields
userGroups[]

object (UserGroup)

User groups in the organization.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/marketingplatformadmin.analytics.read
  • https://www.googleapis.com/auth/marketingplatformadmin.analytics.update