获取特定用户的所有日历事件 [英] Get all calendar events for a specific user

查看:93
本文介绍了获取特定用户的所有日历事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为创建用于将内部应用程序的日历与Outlook Calendar(Exchange)同步的服务的一部分,我需要一种从用户列表的日历中获取所有事件的方法.通过EWS,我可以使用其凭据访问用户的日历,但无法访问获取日历所需的用户密码.是否可以使用管理员凭据和该用户的邮件地址来获取任何用户的数据?

As part of creating a service for syncing an internal application's calendar with Outlook Calendar (Exchange) I need a way to get all of the events from the calendars of a list of users. Through EWS I can get access to a user's calendar with their credentials but I won't have access to the password of the users I need to get the calendar's for. Is there any way to get at any user's data using admin credentials and that user's mail address?

推荐答案

在这里回答我自己的问题,但答案是通过模拟.我很早就遇到过模仿,但乍一看并不是我想要的,但是在仔细阅读之后,这似乎正是我所需要的.

Answering my own questions here but the answer is through impersonation. I had come across impersonation early but at first glance it wasn't what I was looking for but after reading more carefully it seems to be exactly what i need.

有关模拟的MSDN文章

我将让服务器管理员设置一个具有模拟权限的帐户,然后通过其用户名/地址连接到每个帐户,并使用

I'll have the server admin set up an account with impersonation permissions then connect to each account through their username/address and pull the calendar data I need with the GetUserAvailability method.

这篇关于获取特定用户的所有日历事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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