Microsoft Graph: How to get the e-mail address of an Outlook task's assignee?

大憨熊 提交于 2020-06-29 03:38:52

问题


Using Outlook I assign a task to user Romeo Reader:

I request task updates:

Thus the task remains in my task list as well.

I now use Microsoft Graph to receive a list of all my tasks. The task I assigned to Romeo Reader is included in this list. The assignedTo property is set to the name Romeo Reader identifying this task as having been assigned:

Note: This is a plain string property containing the user's display name.

How do I get more information about this user I assigned the task to? I need his e-mail address. Or some other info to get his user profile (email, picture etc.). But this seems not possible since the display name most likely is not unique.

How do I get an identifier for this user that I assigned the task to (using Microsoft Graph)?


回答1:


The bad news is that Microsoft Graph doesn't expose this information directly. What you see is what you get. outlookTask resource type.

What might work for at least some of the cases is doing a relevant people search with the value of the assignedTo property:

GET /me/people?$search="Romeo Reader"

I realize this isn't 100% reliable, but it's the best that can be done with the current state of the Outlook Tasks stuff in Graph. I'd recommend giving feedback on UserVoice.



来源:https://stackoverflow.com/questions/51416164/microsoft-graph-how-to-get-the-e-mail-address-of-an-outlook-tasks-assignee

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