GmailAPI 只能访问一个帐户(服务器到服务器)

发布于 2025-01-12 22:37:27 字数 351 浏览 4 评论 0原文

当有人向 [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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文