GmailAPI 只能访问一个帐户(服务器到服务器)
当有人向 [email protected]。我正在使用 GmailAPI 从该 Gmail 帐户读取新邮件。
目前,我正在使用服务帐户和域范围委派 (DWD) 进行身份验证。
问题是,通过 DWD,我可以访问我的组织中的所有用户帐户,而这是我想要避免的。
是否可以通过这种方式配置服务帐户,以便它只能访问一个用户帐户?或者我可以为单个用户帐户生成并使用私钥,而不是使用 DWD 的服务帐户吗?
I want to create ticket in our system when somebody sends email to [email protected]. I'm using GmailAPI to read new messages from that gmail account.
Currently I'm using service account and domain wide delegation (DWD) for authentication.
The problem is that with DWD I can access all user accounts from my organization and this is what I want to avoid.
Is it possible configure service account this way, so that it has access to only one user account? Or can I generate and use private key for single user account instead of service account with DWD?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论