Unable to retrieve guest users calendar events in Microsoft Graph

走远了吗. 提交于 2021-02-10 06:53:38

问题


I have created an app in azure AD, in my company tenant. In application permissions, I have added Calendars.Read and Calendars.ReadWrite (Read and write calendars in all mailboxes) with application permission type, and I have grant admin consent.

In users, I have added user with personal Microsoft account (outlook.com) as a guest user.

When I am calling a graph for Member users, I am able to receive calendar events (and create a new ones), but when I am calling a graph for a Guest users I get exception MailboxNotEnabledForRESTAPI. Message: REST API is not yet supported for this mailbox.

Is there some limitation that I can create event only to a Member user, or I have miss-configured something?


回答1:


You can only read mails/calendar events of users in your tenant only. So, it's better to filter users using userType eq 'member'. https://graph.microsoft.com/v1.0/users?$filter=userType eq 'member'



来源:https://stackoverflow.com/questions/62135916/unable-to-retrieve-guest-users-calendar-events-in-microsoft-graph

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