简体   繁体   English

如何授予普通用户对Google应用程序脚本的受限adminsdk访问权限?

[英]How to grant a regular user limited adminsdk access for a google app script?

可以让普通用户使用Google App脚本访问AdminDirectory.Members.List()函数,而无需使其成为管理员吗?

It depends on how it's used. 这取决于它的使用方式。 You can deploy your script as a web application, executed as yourself and give access to people people within your own domain. 您可以将脚本部署为Web应用程序,以您自己的身份执行,并向您自己域内的人员授予访问权限。

You could set restriction to particular people within your own domain by using Session.getActiveUser() to determine who is accessing it. 您可以使用Session.getActiveUser()确定谁在访问您的域,从而对您自己域中的特定人员设置限制。 This won't work unless the user is a part of your own GApps domain. 除非用户是您自己的GApps域的一部分,否则这将无法工作。

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

相关问题 如何为Google Apps脚本网络应用(非市场)在全域授予用户数据权限 - How can I grant user data permissions domain-wide for a google apps script web app (non marketplace) Google Apps脚本在首次运行时无需打开脚本编辑器即可授予用户对电子表格的访问权限服务 - Google apps script grant user permissions access services on spreadsheet in ther first run without open script editor 如何授予对Apps脚本的访问权限 - How to grant access to an Apps Script oauth2.0授予Web应用访问用户的Google spreadhseets所需的最小范围是多少? - What are the minimum scopes needed in an oauth2.0 to grant a web app access to a user’s google spreadhseets? 如何使用Google App脚本访问子文件夹? - How to access to a subFolder with google app script? Google电子表格脚本-仅授予对一张工作表的访问权限 - Google spreadsheets script - grant access to only one sheet 如何在谷歌应用脚本中获取用户输入? - How to get user input in google app script? 如何为google app脚本执行API授予其他gmail帐户权限? - How to grant permission to other gmail accounts for google app script execution api? 如何允许匿名的非Google签名访问App脚本 - How to allow anonymous non google signed access to App Script 气体,更新用户信息:AdminSDK目录服务 - GAS, Update User infos : AdminSDK Directory Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM