PrintJob.ReadWriteBasic.All
Allows the application to read and update the metadata of print jobs without a signed-in user. Does not allow access to print job document content.
Permission Details
Read and write basic information for print jobs
Allows the application to read and update the metadata of print jobs without a signed-in user. Does not allow access to print job document content.
57878358-37f4-4d3a-8c20-4816e0d457b1
Read and write basic information of print jobs
Allows the application to read and update the metadata of print jobs on behalf of the signed-in user. Does not allow access to print job document content.
3a0db2f6-0d2a-4c19-971b-49109b19ad3d
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.Abort;
var requestBody = new AbortPostRequestBody
{
Reason = "String",
};
// 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}"].Abort.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const abort = {
reason: 'String'
};
await client.api('/print/printers/{printerId}/jobs/{printJobId}/abort')
.post(abort);
Import-Module Microsoft.Graph.Devices.CloudPrint
$params = @{
reason = "String"
}
Invoke-MgAbortPrintPrinterJob -PrinterId $printerId -PrintJobId $printJobId -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.abort.abort_post_request_body import AbortPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = AbortPostRequestBody(
reason = "String",
)
await graph_client.print.printers.by_printer_id('printer-id').jobs.by_print_job_id('printJob-id').abort.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.ReadWriteBasic.All
Grant Admin Consent
Application permissions always require admin consent.