List dailyPrintUsageByUser
Article
07/06/2023
4 contributors
Feedback
In this article
Namespace: microsoft.graph
Retrieve a list of daily print usage summaries, grouped by user.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions .
In addition to the following permissions, the user's tenant must have an active Universal Print subscription.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
Reports.Read.All
Delegated (personal Microsoft account)
Not Supported.
Application
Not Supported.
HTTP request
GET /reports/dailyPrintUsageByUser
Optional query parameters
This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters .
Name
Description
Authorization
Bearer {token}. Required.
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of printUsageByUser objects in the response body.
Examples
Request
GET https://graph.microsoft.com/v1.0/reports/dailyPrintUsageByUser
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Reports.DailyPrintUsageByUser.GetAsync();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
dailyPrintUsageByUser, err := graphClient.Reports().DailyPrintUsageByUser().Get(context.Background(), nil)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
PrintUsageByUserCollectionPage dailyPrintUsageByUser = graphClient.reports().dailyPrintUsageByUser()
.buildRequest()
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
const options = {
authProvider,
};
const client = Client.init(options);
let dailyPrintUsageByUser = await client.api('/reports/dailyPrintUsageByUser')
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->reports()->dailyPrintUsageByUser()->get()->wait();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
result = await graph_client.reports.daily_print_usage_by_user.get()
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"id": "016b5565-3bbf-4067-b9ff-4d68167eb1a6",
"userPrincipalName": "username@contoso.com",
"usageDate": "Date",
"completedBlackAndWhiteJobCount": 42,
"completedColorJobCount": 0,
"incompleteJobCount": 6
}
]
}