Google Admin SDK Admin Sdk Admin Reports User Usage Report API
The Admin Sdk Admin Reports User Usage Report API from Google Admin SDK — 1 operation(s) for admin sdk admin reports user usage report.
The Admin Sdk Admin Reports User Usage Report API from Google Admin SDK — 1 operation(s) for admin sdk admin reports user usage report.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-admin-sdk:google-admin-sdk-admin-reports-user-usage-report-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Admin SDK API UserUsageReport API
version: reports_v1
description: Generated from Google's published Discovery document for Admin SDK API (admin reports_v1, revision 20261109).
1 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/workspace/admin/
servers:
- url: https://admin.googleapis.com
paths:
/admin/reports/v1/usage/users/{userKey}/dates/{date}:
get:
operationId: reports.userUsageReport.get
summary: Get userUsageReport
description: Retrieves a report which is a collection of properties and statistics for a set of users with the account.
For more information, see the User Usage Report guide. For more information about the user report's parameters, see
the Users Usage parameters reference guides.
parameters:
- name: userKey
in: path
required: true
description: Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all
information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not
be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the
returned `ID` as the `userKey`.
schema:
type: string
- name: date
in: path
required: true
description: Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in
the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
schema:
type: string
pattern: (\d){4}-(\d){2}-(\d){2}
- name: customerId
in: query
required: false
description: The unique ID of the customer to retrieve data for.
schema:
pattern: C.+|my_customer
type: string
- name: filters
in: query
required: false
description: 'The `filters` query string is a comma-separated list of an application''s event parameters where the
parameter''s value is manipulated by a relational operator. The `filters` query string includes the name of the
application whose usage is returned in the report. The application values for the Users Usage Report include `accounts`,
`chat`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In
this example, the `<>` ''not equal to'' operator is URL-encoded in the request''s query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03
?parameters=accounts:last_login_time &filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The relational
operators include: - `==` - ''equal to''. - `<>` - ''not equal to''. It is URL-encoded (%3C%3E). - `<` - ''less
than''. It is URL-encoded (%3C). - `<=` - ''less than or equal to''. It is URL-encoded (%3C=). - `>` - ''greater
than''. It is URL-encoded (%3E). - `>=` - ''greater than or equal to''. It is URL-encoded (%3E=). '
schema:
type: string
pattern: (((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)
- name: groupIdFilter
in: query
required: false
description: 'Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will
contain activities for only those users that are a part of at least one of the group ids mentioned here. Format:
"id:abc123,id:xyz456"'
schema:
pattern: (id:[a-z0-9]+(,id:[a-z0-9]+)*)
type: string
- name: maxResults
in: query
required: false
description: Determines how many activity records are shown on each response page. For example, if the request sets
`maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property
has the token to the second page. The `maxResults` query string is optional.
schema:
format: uint32
maximum: 1000
minimum: 1
default: '1000'
type: integer
- name: orgUnitID
in: query
required: false
description: ID of the organizational unit to report on. User activity will be shown only for users who belong to
the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
schema:
pattern: (id:[a-z0-9]+)
type: string
default: ''
- name: pageToken
in: query
required: false
description: Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response.
In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken`
query string.
schema:
type: string
- name: parameters
in: query
required: false
description: 'The `parameters` query string is a comma-separated list of event parameters that refine a report''s
results. The parameter is associated with a specific application. The application values for the Customers Usage
report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `chat`, `classroom`, `cros`, `docs`, `gmail`,
`gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1,
app_name2:param_name2`. *Note:* The API doesn''t accept multiple values of a parameter. If a particular parameter
is supplied more than once in the API request, the API only accepts the last value of that request parameter. In
addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter
and returns the response corresponding to the remaining valid request parameters. An example of an invalid request
parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. '
schema:
pattern: (((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/UsageReports'
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/admin.reports.usage.readonly
- apiKey: []
tags:
- UserUsageReport
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/admin.reports.usage.readonly: View usage reports for your Google Workspace domain
https://www.googleapis.com/auth/admin.reports.audit.readonly: View audit reports for your Google Workspace domain
schemas:
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
UsageReport:
properties:
kind:
default: admin#reports#usageReport
description: The type of API resource. For a usage report, the value is `admin#reports#usageReport`.
type: string
parameters:
readOnly: true
type: array
items:
properties:
msgValue:
readOnly: true
description: Output only. Nested message value of the parameter.
items:
additionalProperties:
description: Properties of the object.
type: object
type: array
boolValue:
type: boolean
readOnly: true
description: Output only. Boolean value of the parameter.
stringValue:
description: Output only. String value of the parameter.
type: string
readOnly: true
name:
type: string
description: The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters
reference.
intValue:
description: Output only. Integer value of the parameter.
type: string
readOnly: true
format: int64
datetimeValue:
type: string
description: The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z.
readOnly: true
format: date-time
type: object
description: Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters
and values, see [the Entity Usage parameters reference](https://developers.google.com/workspace/admin/reports/v1/reference/usage-ref-appendix-a/entities).
etag:
description: ETag of the resource.
type: string
entity:
type: object
readOnly: true
description: Output only. Information about the type of the item.
properties:
entityId:
type: string
description: 'Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of
report is "Entities" rather than "Objects".'
readOnly: true
customerId:
readOnly: true
description: Output only. The unique identifier of the customer's account.
type: string
type:
readOnly: true
description: Output only. The type of item. The value is `user`.
type: string
profileId:
description: Output only. The user's immutable Google Workspace profile identifier.
readOnly: true
type: string
userEmail:
description: Output only. The user's email address. Only relevant if entity.type = "USER"
type: string
readOnly: true
date:
description: Output only. The date of the report request.
type: string
readOnly: true
description: JSON template for a usage report.
type: object
UsageReports:
properties:
etag:
description: ETag of the resource.
type: string
warnings:
type: array
description: Warnings, if any.
items:
type: object
properties:
message:
type: string
description: 'The human readable messages for a warning are: - Data is not available warning - Sorry, data
for date yyyy-mm-dd for application "`application name`" is not available. - Partial data is available warning
- Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again
after a few hours. '
data:
description: Key-value pairs to give detailed information on the warning.
items:
type: object
properties:
key:
description: Key associated with a key-value pair to give detailed information on the warning.
type: string
value:
description: Value associated with a key-value pair to give detailed information on the warning.
type: string
type: array
code:
description: Machine readable code or warning type. The warning code value is `200`.
type: string
usageReports:
description: Various application parameter records.
items:
$ref: '#/components/schemas/UsageReport'
type: array
kind:
description: The type of API resource. For a usage report, the value is `admin#reports#usageReports`.
type: string
default: admin#reports#usageReports
nextPageToken:
description: Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response.
For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken`
query string.
type: string
type: object
x-provenance:
method: harvested
publisher: Google
source: https://admin.googleapis.com/$discovery/rest?version=reports_v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)