Access UniversalPrint via Application Access

%3CLINGO-SUB%20id%3D%22lingo-sub-2196229%22%20slang%3D%22en-US%22%3EAccess%20UniversalPrint%20via%20Application%20Access%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196229%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%2C%20to%20register%20a%20multitenantapp%20and%20use%20UniversalPrint%20via%20Application%20Access%20and%20still%20be%20able%20to%20create%20Printjobs%3F%3C%2FP%3E%3CP%3EThis%20is%20desired%20for%20a%20general%20setup%2C%20where%20the%20user%20initiating%20the%20print%20is%20of%20no%20concern%2C%20but%20the%20availbility%20of%20the%20print%20function%20is%2C%20so%20not%20having%20to%20worry%20about%20pwd%20changes%20is%20a%20good%20start%20to%20ensure%20higher%20availibility.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20read%20printers%20and%20their%20jobs%20just%20fine%20with%20that%20token%2C%20but%20I%20on%20creating%20a%20new%20print%20job%20(post%20to%20%2Fprint%2Fprinters%2F%7BPrinterId%7D%2Fjobs)%20I%20am%20always%20receiving%20%22The%20token%20does%20not%20have%20one%20or%20more%20required%20security%20scopes.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnalyzing%20the%20token%20confirms%2C%20that%20the%20application%20should%20have%20enough%20privileges%3A%3C%2FP%3E%3CP%3E%22roles%22%3A%20%5B%3CBR%20%2F%3E%22Printer.ReadWrite.All%22%2C%3CBR%20%2F%3E%22PrintJob.Manage.All%22%2C%3CBR%20%2F%3E%22PrintSettings.Read.All%22%2C%3CBR%20%2F%3E%22PrintJob.ReadWrite.All%22%3CBR%20%2F%3E%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20insights%20on%20this%20being%20a%20supported%20scenario%20at%20all%20or%20if%20it%20is%2C%20what%20my%20error%20might%20be%20are%20highly%20welcome.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

[Edit] I menawhile read the docs more carefully and the create commands are explicitly not supported for application. Too bad [/Edit]

 

 

Is it possible, to register a multitenantapp and use UniversalPrint via Application Access and still be able to create Printjobs?

This is desired for a general setup, where the user initiating the print is of no concern, but the availbility of the print function is, so not having to worry about pwd changes is a good start to ensure higher availibility.

 

I can read printers and their jobs just fine with that token, but I on creating a new print job (post to /print/printers/{PrinterId}/jobs) I am always receiving "The token does not have one or more required security scopes."

 

Analyzing the token confirms, that the application should have enough privileges:

"roles": [
"Printer.ReadWrite.All",
"PrintJob.Manage.All",
"PrintSettings.Read.All",
"PrintJob.ReadWrite.All"
]

 

Any insights on this being a supported scenario at all or if it is, what my error might be are highly welcome.

1 Reply

@Chris1974 - Some APIs can be called using application token whereas others need delegated (or user) token. Specifically, to create a printer or to create a print job you need to have delegated token of printer admin or of the user.

 

Printing is currently done in the context of user.

 

Please share a scenario if you need printing to be done in a non-user context and create a request via https://aka.ms/UPIdeas.

 

Thanks

Saurabh