Srikanth P Vasist
Srikanth P Vasist

Reputation: 1437

Can google service account be used for specific user documents retrival?

Requirement:

I want to access the Google drive documents of a particular user programmatically(being [email protected] is his email id).

Present Condition:

I am using Google drive SDK to achieve this. The sample provided by Google launches a browser process with an URL which asks me to login with that user account and then give an authorization code to actually perform my tasks.

Problem:

I want to automate the entire process. I don't want any manual interaction in this process.

Findings: While hunting for the solution I got Use regular Google accounts as application-owned accounts which looked friendly to my solution.

Questions:

  1. Please suggest me a way I can automate Google authentication.
  2. Is there anything like google enterprise solution such that an admin account can look into any account in that organization?

Upvotes: 0

Views: 150

Answers (1)

Claudio Cherubino
Claudio Cherubino

Reputation: 15004

You can perform Google Apps domain-wide delegation of authority to allow a Google Apps domain administrator to access data on behalf of one of the users in the domain. This only works on Google Apps domain and not for gmail.com accounts (for which there's no domain administrator role). You can learn more about this feature on https://developers.google.com/drive/delegation

Upvotes: 1

Related Questions