- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- UserPrintReport
- Try it!
Get a summary of printing done by each user.
HTTP request
GET https://chromemanagement.googleapis.com/v1/{customer=customers/*}/reports:countPrintJobsByUser
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customer |
Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request. |
Query parameters
Parameters | |
---|---|
printerOrgUnitId |
The ID of the organizational unit for printers. If specified, only print jobs initiated with printers from the specified organizational unit will be counted. If omitted, all print jobs will be counted. |
pageSize |
Maximum number of results to return. Maximum and default are 100. |
pageToken |
Token to specify the page of the response to be returned. |
filter |
Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only >= and <= comparators are supported in this filter. Supported filter fields:
|
orderBy |
Field used to order results. If omitted, results will be ordered in ascending order of the 'userEmail' field. Supported orderBy fields:
|
Request body
The request body must be empty.
Response body
Response containing a summary printing report for each user that has initiated a print job with a printer from the specified organizational unit during the requested time interval.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"userPrintReports": [
{
object ( |
Fields | |
---|---|
userPrintReports[] |
List of UserPrintReports matching request. |
nextPageToken |
Pagination token for requesting the next page. |
totalSize |
Total number of users matching request. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chrome.management.reports.readonly
UserPrintReport
Report for reports.countPrintJobsByUser, contains printing statistics for a user. Contains the number of printers, the number of devices used to initiate print jobs, and the number of print jobs initiated.
JSON representation |
---|
{ "userId": string, "userEmail": string, "jobCount": string, "printerCount": string, "deviceCount": string } |
Fields | |
---|---|
userId |
The unique Directory API ID of the user. |
userEmail |
The primary e-mail address of the user. |
jobCount |
Number of print jobs initiated by the user. |
printerCount |
Number of printers used by the user. |
deviceCount |
Number of chrome devices that have been used to initiate print jobs by the user. |