Setting printer capabilities and defaults

New Contributor

Registering a printer with an API call of either using scope "Printer.Create"

or using scope ""

works fine.


But setting the capabilities and defaults for the newly created printer does not work with the Microsoft Graph API. And I cannot find any other API docs saying anything about updating capabilities and defaults.


When using the dotnet beta client:

var app = ConfidentialClientApplicationBuilder
.WithAuthority(AzureCloudInstance.AzurePublic, "organizations")

// create printer and wait for completion

await new GraphServiceClient(new ClientCredentialProvider(app)).Print.Printers["<printerId>"].Request().UpdateAsync(printer);

 The default constructor uses the scope that is required according to the Universal Print docs.


The update call throws an exception, that

"The token does not have one or more required security scopes."


Also, if I pass a specific application permission e.g. "Printer.ReadWrite.All"

await new GraphServiceClient(new ClientCredentialProvider(app, "Printer.ReadWrite.All")).Print.Printers["<printerId>"].Request().UpdateAsync(printer);

the exception now is:

"AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope Printer.ReadWrite.All is not valid."


To make sure there is no issue on missing API rights I added all existing Universal Print rights in Azure.



Admin consent has been given also.


Have no ideas anymore. Can anyone help?


Would be nice to have the ability to set capabilities and defaults with the printer registration process instead of having to make a separate "update" call or similar.



1 Reply

So after getting some help on github , the following does the trick

.WithAuthority(AzureCloudInstance.AzurePublic, "{tenantIdOfClientApplication}")




as tenant id does not work.