PrintJob.ReadWrite.All
Allows the application to read and update the metadata and document content of print jobs without a signed-in user.
In short
PrintJob.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the PrintJob category. Allows the application to read and update the metadata and document content of print jobs without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent.
Permission Details
Read and write print jobs
Allows the application to read and update the metadata and document content of print jobs without a signed-in user.
5114b07b-2898-4de7-a541-53b0004e2e13
Read and write print jobs
Allows the application to read and update the metadata and document content of print jobs on behalf of the signed-in user.
036b9544-e8c5-46ef-900a-0646cc42b271
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
// Dependencies
using Microsoft.Graph.Print.Printers.Item.Jobs.Item.Documents.Item.CreateUploadSession;
using Microsoft.Graph.Models;
var requestBody = new CreateUploadSessionPostRequestBody
{
Properties = new PrintDocumentUploadProperties
{
DocumentName = "TestFile.pdf",
ContentType = "application/pdf",
Size = 4533322L,
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Print.Printers["{printer-id}"].Jobs["{printJob-id}"].Documents["{printDocument-id}"].CreateUploadSession.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const uploadSession = {
properties: {
documentName: 'TestFile.pdf',
contentType: 'application/pdf',
size: 4533322
}
};
await client.api('/print/printers/{printerId}/jobs/{printJobId}/documents/{printDocumentId}/createUploadSession')
.post(uploadSession);
Import-Module Microsoft.Graph.Devices.CloudPrint
$params = @{
properties = @{
documentName = "TestFile.pdf"
contentType = "application/pdf"
size = 4533322
}
}
New-MgPrintPrinterJobDocumentUploadSession -PrinterId $printerId -PrintJobId $printJobId -PrintDocumentId $printDocumentId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.print.printers.item.jobs.item.documents.item.create_upload_session.create_upload_session_post_request_body import CreateUploadSessionPostRequestBody
from msgraph.generated.models.print_document_upload_properties import PrintDocumentUploadProperties
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = CreateUploadSessionPostRequestBody(
properties = PrintDocumentUploadProperties(
document_name = "TestFile.pdf",
content_type = "application/pdf",
size = 4533322,
),
)
result = await graph_client.print.printers.by_printer_id('printer-id').jobs.by_print_job_id('printJob-id').documents.by_print_document_id('printDocument-id').create_upload_session.post(request_body)
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 Application permissions or delegated permissions and search for PrintJob.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.
Frequently asked questions
What is the PrintJob.ReadWrite.All Microsoft Graph permission?
PrintJob.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the PrintJob category. Allows the application to read and update the metadata and document content of print jobs without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph printjob resource type. 34 documented Microsoft Graph REST methods require it. 26 Microsoft Graph PowerShell commands are documented for it.
Is PrintJob.ReadWrite.All an application or a delegated permission?
PrintJob.ReadWrite.All is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).
Does PrintJob.ReadWrite.All require admin consent?
Application permissions always require admin consent.
What is the permission ID (GUID) for PrintJob.ReadWrite.All?
For PrintJob.ReadWrite.All, the application (app role) ID is 5114b07b-2898-4de7-a541-53b0004e2e13, and the delegated (OAuth2 scope) ID is 036b9544-e8c5-46ef-900a-0646cc42b271. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.