如何获得委托帐户的邮件 [英] How to get mails of delegated accounts
问题描述
所以我有两个问题:
- 检索具有委派访问权限的所有帐户
- 检索邮件
- 检索邮件
电子邮件设置API为委托人提供acccess,而不是委托人。
有没有办法做到这一点
随时索取更多资讯
找出是谁授予您对其账户的委托访问权限,您需要执行检索委托API调用:
https://developers.google.com/google-apps/email-settings/#retrieving_all_gmail_delegates
全部Google Apps实例中的用户。
通过编程访问用户的gmail mailb ox由IMAP OAuth登录提供:
https://developers.google.com / google-apps / gmail / oauth_overview
但是,目前代理人无法通过IMAP访问委托人邮箱,因此我担心您'b / b
如果您是管理员,则可以使用IMAP OAuth登录以及服务帐户:
https://developers.google.com/accounts/docs/OAuth2ServiceAccount
这会让您可以通过程序访问Google Apps实例中的所有用户。
Jay
Being authenticated as user1, i'd like to retrieve mails of all the users who have delegated access to user1.
So i have two problems :
- Retrieve all the accounts that have delegated access
- Retrieve the mails
The emails-settings-API gives acccess to delegates, not delegators.
Is there a way to do that progamatically.
Feel free to ask for more information
To find out who has given you delegated access to their account, you would need to perform the retrieve delegates API call: https://developers.google.com/google-apps/email-settings/#retrieving_all_gmail_delegates
for all users in your Google Apps instance.
Programmatic access to a user's gmail mailbox is provided by IMAP OAuth logins: https://developers.google.com/google-apps/gmail/oauth_overview
However, there is currently no way for a delegate to access a delegators mailbox via IMAP so I'm afraid you're out of luck.
If you are an administrator, you can use IMAP OAuth login along with service accounts: https://developers.google.com/accounts/docs/OAuth2ServiceAccount
this will give you programmatic access to all users in your Google Apps instance.
Jay
这篇关于如何获得委托帐户的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!