仅使用管理员授权访问Office 365用户邮件数据 [英] Accessing Office 365 user mail data with admin authorisation only

查看:316
本文介绍了仅使用管理员授权访问Office 365用户邮件数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在构建一个简单的Web应用程序,其流程为: 1. Office 365的管理员用户提供身份验证和登录 2.应用程序检索域中所有用户的所有邮件

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

可以使用Google Apps for business进行此操作,即仅使用管理员身份验证即可检索所有用户的邮件.

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

您将如何针对Office 365进行此操作?我目前正在使用REST API遇到此问题-

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

还有另一种方法吗? EWS?我必须相信可以通过管理员身份访问邮件.

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

推荐答案

您可以模拟使用.但是,MSDN意味着如何使用EWS托管API和SOAP请求来实现此功能,而没有REST API.如果可以使用EWS托管API,则应使用它.有关详细信息,请参阅MSDN文章:

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. 通过使用EWS托管API.
  2. 使用Exchange模仿
  1. Working with impersonation by using the EWS Managed API.
  2. Using Exchange Impersonation

这篇关于仅使用管理员授权访问Office 365用户邮件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆