---
title: "POST /v1beta/accounts/{accountsId}:runAccessReport"
method: POST
path: "/v1beta/accounts/{accountsId}:runAccessReport"
tags: ["accounts"]
---

# POST /v1beta/accounts/{accountsId}:runAccessReport

`POST /v1beta/accounts/{accountsId}:runAccessReport`

## Request

- Base URL: `https://analyticsadmin.googleapis.com`
- URL: `https://analyticsadmin.googleapis.com/v1beta/accounts/{accountsId}:runAccessReport`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/analytics.edit`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/analytics.edit`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/analytics.readonly`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/analytics.readonly`

Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.

## Path parameters

- `accountsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GoogleAnalyticsAdminV1betaRunAccessReportRequest: The request for a Data Access Record Report.
  - `dateRanges` GoogleAnalyticsAdminV1betaAccessDateRange[]: Date ranges of access records to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the access records for the overlapping days is included in the response rows for both date ranges. Requests are allowed up to 2 date ranges.
    - `endDate` string: The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.
    - `startDate` string: The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.
  - `dimensionFilter` GoogleAnalyticsAdminV1betaAccessFilterExpression: Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.
    - `accessFilter` GoogleAnalyticsAdminV1betaAccessFilter: An expression to filter dimension or metric values.
      - `betweenFilter` GoogleAnalyticsAdminV1betaAccessBetweenFilter: To express that the result needs to be between two numbers (inclusive).
        - `fromValue` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
        - `toValue` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
      - `fieldName` string: The dimension name or metric name.
      - `inListFilter` GoogleAnalyticsAdminV1betaAccessInListFilter: The result needs to be in a list of string values.
        - `caseSensitive` boolean: If true, the string value is case sensitive.
        - `values` string[]: The list of string values. Must be non-empty.
      - `numericFilter` GoogleAnalyticsAdminV1betaAccessNumericFilter: Filters for numeric or date values.
        - `operation` 'OPERATION_UNSPECIFIED' | 'EQUAL' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL': The operation type for this filter.
        - `value` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
      - `stringFilter` GoogleAnalyticsAdminV1betaAccessStringFilter: The filter for strings.
        - `caseSensitive` boolean: If true, the string value is case sensitive.
        - `matchType` 'MATCH_TYPE_UNSPECIFIED' | 'EXACT' | 'BEGINS_WITH' | 'ENDS_WITH' | 'CONTAINS' | 'FULL_REGEXP' | 'PARTIAL_REGEXP': The match type for this filter.
        - `value` string: The string value used for the matching.
    - `andGroup` GoogleAnalyticsAdminV1betaAccessFilterExpressionList: A list of filter expressions.
      - `expressions` GoogleAnalyticsAdminV1betaAccessFilterExpression[]: A list of filter expressions.
    - `notExpression` GoogleAnalyticsAdminV1betaAccessFilterExpression (recursive)
    - `orGroup` GoogleAnalyticsAdminV1betaAccessFilterExpressionList: A list of filter expressions.
      - `expressions` GoogleAnalyticsAdminV1betaAccessFilterExpression[]: A list of filter expressions.
  - `dimensions` GoogleAnalyticsAdminV1betaAccessDimension[]: The dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions.
    - `dimensionName` string: The API name of the dimension. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of dimensions supported in this API. Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
  - `expandGroups` boolean: Optional. Decides whether to return the users within user groups. This field works only when include_all_users is set to true. If true, it will return all users with access to the specified property or account. If false, only the users with direct access will be returned.
  - `includeAllUsers` boolean: Optional. Determines whether to include users who have never made an API call in the response. If true, all users with access to the specified property or account are included in the response, regardless of whether they have made an API call or not. If false, only the users who have made an API call will be included.
  - `limit` string, int64: The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. `limit` must be positive. The API may return fewer rows than the requested `limit`, if there aren't as many remaining rows as the `limit`. For instance, there are fewer than 300 possible values for the dimension `country`, so when reporting on only `country`, you can't get more than 300 rows, even if you set `limit` to a higher value. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  - `metricFilter` GoogleAnalyticsAdminV1betaAccessFilterExpression: Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.
    - `accessFilter` GoogleAnalyticsAdminV1betaAccessFilter: An expression to filter dimension or metric values.
      - `betweenFilter` GoogleAnalyticsAdminV1betaAccessBetweenFilter: To express that the result needs to be between two numbers (inclusive).
        - `fromValue` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
        - `toValue` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
      - `fieldName` string: The dimension name or metric name.
      - `inListFilter` GoogleAnalyticsAdminV1betaAccessInListFilter: The result needs to be in a list of string values.
        - `caseSensitive` boolean: If true, the string value is case sensitive.
        - `values` string[]: The list of string values. Must be non-empty.
      - `numericFilter` GoogleAnalyticsAdminV1betaAccessNumericFilter: Filters for numeric or date values.
        - `operation` 'OPERATION_UNSPECIFIED' | 'EQUAL' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL': The operation type for this filter.
        - `value` GoogleAnalyticsAdminV1betaNumericValue: To represent a number.
          - `doubleValue` number, double: Double value
          - `int64Value` string, int64: Integer value
      - `stringFilter` GoogleAnalyticsAdminV1betaAccessStringFilter: The filter for strings.
        - `caseSensitive` boolean: If true, the string value is case sensitive.
        - `matchType` 'MATCH_TYPE_UNSPECIFIED' | 'EXACT' | 'BEGINS_WITH' | 'ENDS_WITH' | 'CONTAINS' | 'FULL_REGEXP' | 'PARTIAL_REGEXP': The match type for this filter.
        - `value` string: The string value used for the matching.
    - `andGroup` GoogleAnalyticsAdminV1betaAccessFilterExpressionList: A list of filter expressions.
      - `expressions` GoogleAnalyticsAdminV1betaAccessFilterExpression[]: A list of filter expressions.
    - `notExpression` GoogleAnalyticsAdminV1betaAccessFilterExpression (recursive)
    - `orGroup` GoogleAnalyticsAdminV1betaAccessFilterExpressionList: A list of filter expressions.
      - `expressions` GoogleAnalyticsAdminV1betaAccessFilterExpression[]: A list of filter expressions.
  - `metrics` GoogleAnalyticsAdminV1betaAccessMetric[]: The metrics requested and displayed in the response. Requests are allowed up to 10 metrics.
    - `metricName` string: The API name of the metric. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of metrics supported in this API. Metrics are referenced by name in `metricFilter` & `orderBys`.
  - `offset` string, int64: The row count of the start row. The first row is counted as row 0. If offset is unspecified, it is treated as 0. If offset is zero, then this method will return the first page of results with `limit` entries. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  - `orderBys` GoogleAnalyticsAdminV1betaAccessOrderBy[]: Specifies how rows are ordered in the response.
    - `desc` boolean: If true, sorts by descending order. If false or unspecified, sorts in ascending order.
    - `dimension` GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy: Sorts by dimension values.
      - `dimensionName` string: A dimension name in the request to order by.
      - `orderType` 'ORDER_TYPE_UNSPECIFIED' | 'ALPHANUMERIC' | 'CASE_INSENSITIVE_ALPHANUMERIC' | 'NUMERIC': Controls the rule for dimension value ordering.
    - `metric` GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy: Sorts by metric values.
      - `metricName` string: A metric name in the request to order by.
  - `returnEntityQuota` boolean: Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level requests, this field must be false.
  - `timeZone` string: This request's time zone if specified. If unspecified, the property's time zone is used. The request's time zone is used to interpret the start & end dates of the report. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example "America/New_York" or "Asia/Tokyo".

## Response `200`

Successful response

- GoogleAnalyticsAdminV1betaRunAccessReportResponse: The customized Data Access Record Report response.
  - `dimensionHeaders` GoogleAnalyticsAdminV1betaAccessDimensionHeader[]: The header for a column in the report that corresponds to a specific dimension. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
    - `dimensionName` string: The dimension's name; for example 'userEmail'.
  - `metricHeaders` GoogleAnalyticsAdminV1betaAccessMetricHeader[]: The header for a column in the report that corresponds to a specific metric. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
    - `metricName` string: The metric's name; for example 'accessCount'.
  - `quota` GoogleAnalyticsAdminV1betaAccessQuota: Current state of all quotas for this Analytics property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors.
    - `concurrentRequests` GoogleAnalyticsAdminV1betaAccessQuotaStatus: Current state for a particular quota group.
      - `consumed` integer: Quota consumed by this request.
      - `remaining` integer: Quota remaining after this request.
    - `serverErrorsPerProjectPerHour` GoogleAnalyticsAdminV1betaAccessQuotaStatus: Current state for a particular quota group.
      - `consumed` integer: Quota consumed by this request.
      - `remaining` integer: Quota remaining after this request.
    - `tokensPerDay` GoogleAnalyticsAdminV1betaAccessQuotaStatus: Current state for a particular quota group.
      - `consumed` integer: Quota consumed by this request.
      - `remaining` integer: Quota remaining after this request.
    - `tokensPerHour` GoogleAnalyticsAdminV1betaAccessQuotaStatus: Current state for a particular quota group.
      - `consumed` integer: Quota consumed by this request.
      - `remaining` integer: Quota remaining after this request.
    - `tokensPerProjectPerHour` GoogleAnalyticsAdminV1betaAccessQuotaStatus: Current state for a particular quota group.
      - `consumed` integer: Quota consumed by this request.
      - `remaining` integer: Quota remaining after this request.
  - `rowCount` integer: The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  - `rows` GoogleAnalyticsAdminV1betaAccessRow[]: Rows of dimension value combinations and metric values in the report.
    - `dimensionValues` GoogleAnalyticsAdminV1betaAccessDimensionValue[]: List of dimension values. These values are in the same order as specified in the request.
      - `value` string: The dimension value. For example, this value may be 'France' for the 'country' dimension.
    - `metricValues` GoogleAnalyticsAdminV1betaAccessMetricValue[]: List of metric values. These values are in the same order as specified in the request.
      - `value` string: The measurement value. For example, this value may be '13'.

## Changes

- **2026-10-29** `2f06698abda1`: 4 info
  - the security scope `https://www.googleapis.com/auth/analytics.edit` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/analytics.edit` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/analytics.readonly` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/analytics.readonly` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/analyticsadmin/changes/v1beta/accounts/:accountsId:runAccessReport/post.md)

---

[API](https://skmtc.dev/google/apis/analyticsadmin.md) - [All operations](https://skmtc.dev/google/apis/analyticsadmin/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/analyticsadmin/revisions/2f06698abda1?raw)
