Accessing Office 365 user mail data with admin aut

2019-06-14 13:39发布

I am currently building a simple web app the flow of which is: 1. Admin user for Office 365 provides auth and signs in 2. App retrieves all mail for all users in the domain

It is possible to do this with Google Apps for business, i.e. retrieve mail for all users with only the admin auth.

How would you go about doing this for Office 365? I am currently encountering this problem using the REST API - Get MS Exchange mail for all group members

Is there another way? EWS? I have to believe it's possible to access mail with an admin auth.

1条回答
forever°为你锁心
2楼-- · 2019-06-14 13:42

You can do it with impersonation. However, MSDN means how to do it with EWS managed API and SOAP request, but no REST API. If you can use EWS manged API, you should use this. Please refer the MSDN articles for details:

  1. Working with impersonation by using the EWS Managed API.
  2. Using Exchange Impersonation
查看更多
登录 后发表回答