简体   繁体   English

Google Drive API将项目限制为具有只读访问权限的特定文件夹

[英]Google Drive API limit Project to Specific folder with Read only access

We are looking to create a project for access to a specific folder with Read only permission. 我们正在寻求创建一个项目,以访问具有只读权限的特定文件夹。 My question is when creating the project what ways are there to limit access and permission in the project itself? 我的问题是,在创建项目时,有哪些方法可以限制项目本身的访问和许可? Can this be done? 能做到吗? and is it through the enable APIs. 是通过启用API进行的。 I have done some reading on this and I cannot find a conclusive answer. 我已经对此进行了一些阅读,但找不到最终的答案。 What APIs would I need enabled to apply this. 我需要启用哪些API才能应用此功能。

I will not be in control of any scripts, this will be a project for web application. 我将不会控制任何脚本,这将是一个用于Web应用程序的项目。

The scenario of what we have is Many thousands of files with in google drive, we want to give access to a specific folder and not have the ability to go through the rest of our google drive. 我们所拥有的方案是Google驱动器中有成千上万个文件,我们希望授予对特定文件夹的访问权限,而无法浏览我们的Google驱动器其余部分。 They will be using Javascript to download files from this and upload automatically in to a system at there end, they are looking to use the Google drive API to do this. 他们将使用Javascript从中下载文件并自动将其上传到最终的系统中,他们希望使用Google驱动器API来执行此操作。

Look forward to your replys opinions and direction on this. 期待您的答复意见和方向。 Many thanks 非常感谢

you cannot do this at the project console level. 您不能在项目控制台级别执行此操作。 you are missing info like how the webapp authenticates the user or whether the drive api calls are server side or client side. 您缺少诸如Webapp如何验证用户身份或驱动器api调用是服务器端还是客户端的信息。 but in either case what you need is to never use the drive owner account and simply share that folder readonly public or to specific emails. 但无论哪种情况,您都不需要使用驱动器所有者帐户,而只需将该文件夹以只读方式公开共享给公共或特定的电子邮件即可。

for a more detailed answer you need to explain much better the scenario. 要获得更详细的答案,您需要更好地解释这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM