I have an application that uses google cloud print. The printers are registered on a company google account. I have to change the application to use oAuth now and since the application runs as a service (no user involved) it seems I have to use Google service account. I created a service account from the google account that owns the cloud print printers.
I can authenticate and issue submit commands, but the submit fail with user not approved which I suspect is because the service account does not actually own the printers.
Have anyone used google cloud print with oAuth, Service account and c# and can confirm it actually works?
I had the same problem and I came to the same conclusion as you: the service account does not own the printers. I found a solution here: https://stackoverflow.com/a/19951913/3122797
Basically, what you have to do is share your printers account with your service account. The problem is that the service account must accept the sharing, which is not possible. The alternative solution proposed by dexter - which I successfully tried - is
Thus, the sharing works, and so do the API calls to Google Cloud Print.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With