Google Service account user interfece

为君一笑 提交于 2020-01-23 04:56:08

问题


How can I login to a Google Service account with the normal web user interface, for example to google drive ?

Now I can only login using API using script.


回答1:


You cant. A service account is a sudo user type thing. Yes it has a Google drive account, Google calendar ... but you cant log in to the web interface for Service accounts.

Option / work around / Tip:

There is a slight workaround. You could have the service account give your Google account access to a directory on its Google drive. Then when you login to Google Drive web you will be able to see the files. Tip: If you want to be able to interact with the files the service account will also have to grant you access to each of the files in the directory.

You can use files.patch and permissions to achieve this.



来源:https://stackoverflow.com/questions/30023061/google-service-account-user-interfece

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!