google-admin-sdkgoogle-reseller-api

Reseller API not working via service account


We can't make reseller API calls working using a service account. The steps on the link:

https://developers.google.com/drive/delegation#delegate_domain-wide_authority_to_your_service_account

were followed without any luck.

With regards


Solution

  • When performing service account authentication against the directory or reseller API, you must impersonate a Google Apps user within the instance who has the proper permissions to make the API calls. This is done via the prn parameter as described in the service account documentation. How you specify the prn user will differ by client library.