Get MS Exchange mail for all group members

我们两清 提交于 2019-12-12 13:53:13

问题


Is it possible to get all email from all mailboxes in MS Exchange? I have full rights in Azure console for Office365 exchange online.

http://i.stack.imgur.com/DF5n5.png

But when I'm trying make an request to

https://outlook.office365.com/EWS/OData/Users('user@company.onmicrosoft.com')/Inbox/Messages

getting an error "The specified object was not found in the store."

But for logged in admin

https://outlook.office365.com/EWS/OData/Me/Inbox/Messages

https://outlook.office365.com/EWS/OData/Users('admin@company.onmicrosoft.com')/Inbox/Messages

works well.

What should I do, to get access for read mail for all my users in office 365?


回答1:


The current authorization model for Office 365 Mail, Calendar and Contacts services does not currently expose a permission that would allow your app to query other users' mailboxes.




回答2:


The REST API consent flow allows you to register a web app that requires Admin consent. Once your web app has been given the global admin consent, it should be able to access information for all users under that tenant.

See the following post for more information: http://msdn.microsoft.com/EN-US/library/office/dn605895(v=office.15).aspx#ConNavExample_config



来源:https://stackoverflow.com/questions/24009106/get-ms-exchange-mail-for-all-group-members

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!