Edit

Add printer

Namespace: microsoft.graph

Add an existing printer to the printers relationship of a pullPrintPrinter.

To manage an explicit set of member printers, set the includeAllPrinters property of the pull print printer to false.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permission Higher privileged permissions
Delegated (work or school account) PullPrintPrinter.FullControl.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

Important

For delegated access using work or school accounts, the signed-in user must have a tenant-wide assignment to a supported Microsoft Entra role. Printer Administrator is the least privileged role supported for this operation.

HTTP request

POST /print/pullPrintPrinters/{pullPrintPrinterId}/printers/$ref

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply the following property.

Property Type Description
@odata.id String The full URL of the printer to add as a member. Required.

Response

If successful, this method returns a 204 No Content response code and no response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/print/pullPrintPrinters/15037699-acf2-2dbb-b20c-897053051345/printers/$ref
Content-Type: application/json

{
  "@odata.id": "https://graph.microsoft.com/v1.0/print/printers/d5f2a1b0-1111-2222-3333-444455556666"
}

Response

The following example shows the response.

HTTP/1.1 204 No Content