简体   繁体   中英

How to read outlook group emails with microsoft graph api?

Is there any way to read mails from group email id or is there any way to read emails without graph api?

And also is there any way to restrict graph api token to read only from desired email account?

You should use GET /users/{id of group email}/mailFolders/{id}/messages to read mails from group email id.

See reference here .

If you want to restrict graph api token to read only from desired email account, you should implement Get access on behalf of a user . Then you will be able to access the signed-in user's email only.

To answer your first question, the following call will get you the emails in a group mailbox. GET https://graph.microsoft.com/v1.0/groups/{group-id}/conversations

Can you ask your second question in a new post as it is not related to the first? Make sure you provide information about what you are doing. What auth flow are you using?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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