List printJobs for a printerShare
Namespace: microsoft.graph
Retrieve a list of print jobs associated with the printerShare.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
To use the Universal Print service, the user or app's tenant must have an active Universal Print subscription, a permission that grants Get printerShare access, and one of the permissions listed in the following table.
To read print jobs from another user, the signed in user needs to be a print administrator and have the PrintJob.ReadBasic.All, PrintJob.Read.All, PrintJob.ReadWriteBasic.All, or PrintJob.ReadWrite.All permission.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | PrintJob.ReadBasic, PrintJob.Read, PrintJob.ReadBasic.All, PrintJob.Read.All, PrintJob.ReadWriteBasic, PrintJob.ReadWrite, PrintJob.ReadWriteBasic.All, PrintJob.ReadWrite.All |
Delegated (personal Microsoft account) | Not Supported. |
Application | PrintJob.ReadBasic.All, PrintJob.Read.All, PrintJob.ReadWriteBasic.All, PrintJob.ReadWrite.All  |
HTTP request
GET /print/shares/{printerShareId}/jobs
Optional query parameters
This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.
- The documents property is omitted from the response by default. To also return a list of printDocuments for each print job, use
$expand=documents
. - This method supports filtering print jobs by the user who created them. Use
$filter=createdBy/userPrincipalName eq '{upn}'
, where {upn} is the user principal name of the associated user.
Exceptions
Some operators are not supported: $count
, $search
.
Request headers
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 printJob objects in the response body.
Examples
Request
GET https://graph.microsoft.com/v1.0/print/shares/{printerShareId}/jobs
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#print/shares('f37141d9-0afb-484f-96d3-0ef0a679e6c1')/jobs",
"value": [
{
"id": "103",
"createdDateTime": "2020-02-04T00:00:00.0000000Z",
"createdBy": {
},
"status": {
"state": "completed",
"description": "The print job has completed successfully and no further processing will take place.",
"details": [
],
"isAcquiredByPrinter": true
},
"configuration": {
},
"redirectedTo": null,
"redirectedFrom": null,
"isFetchable": false
}
]
}
Feedback
Submit and view feedback for