PrintJob.Read
Allows the application to read the metadata and document content of print jobs that the signed-in user created.
Permission Details
Read user's print jobs
Allows the application to read the metadata and document content of print jobs that the signed-in user created.
248f5528-65c0-4c88-8326-876c7236df5e
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
configuration |
printJobConfiguration |
A group of settings that a printer should use to print a job. |
createdBy |
userIdentity |
Read-only. Nullable. |
createdDateTime |
DateTimeOffset |
The DateTimeOffset when the job was created. Read-only. |
id |
String |
The ID of the print job. Read-only. |
isFetchable |
Edm.Boolean |
If true, document can be fetched by printer. |
redirectedFrom |
Edm.StringNullable |
Contains the source job URL, if the job has been redirected from another printer. |
redirectedTo |
Edm.StringNullable |
Contains the destination job URL, if the job has been redirected to another printer. |
status |
printJobStatus |
The status of the print job. Read-only. |
errorCode |
Int32Nullable |
The error code of the print job. Read-only. |
acknowledgedDateTime |
DateTimeOffsetNullable |
The dateTimeOffset when the job was acknowledged. Read-only. |
documents |
printDocument collection |
|
tasks |
printTask collection |
A list of printTasks that were triggered by this print job. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.printJob",
"id": "String (identifier)",
"createdDateTime": "String (timestamp)",
"status": {
"@odata.type": "microsoft.graph.printJobStatus"
},
"createdBy": {
"@odata.type": "microsoft.graph.userIdentity"
},
"configuration": {
"@odata.type": "microsoft.graph.printJobConfiguration"
},
"redirectedTo": "String",
"redirectedFrom": "String",
"isFetchable": "Boolean"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
documents |
printDocument collection |
Read-only. |
tasks |
printTask collection |
A list of printTasks that were triggered by this print job. |
configuration |
printJobConfiguration |
Related configuration data exposed by this resource. |
status |
printJobStatus |
Related status data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Print.Printers["{printer-id}"].Jobs["{printJob-id}"].Documents["{printDocument-id}"].Content.GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let stream = await client.api('/print/printers/{printerId}/jobs/{printJobId}/documents/{printDocumentId}/$value')
.get();
Import-Module Microsoft.Graph.Devices.CloudPrint
Get-MgPrintPrinterJobDocumentContent -PrinterId $printerId -PrintJobId $printJobId -PrintDocumentId $printDocumentId -OutFile $outFileId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
await graph_client.print.printers.by_printer_id('printer-id').jobs.by_print_job_id('printJob-id').documents.by_print_document_id('printDocument-id').content.get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for PrintJob.Read
Grant Admin Consent
Users can consent to this permission during sign-in.