Unable to subscribe to Microsoft Graph API Calendar is user has apostrophe in name

吃可爱长大的小学妹 提交于 2020-01-05 04:51:17

问题


We have an application set up in Office 365. The customer has given Admin Consent to Calendar.ReadWrite access for all users’ calendars in the tenant.

Our web application is able to set up subscriptions for change notifications except for users with an apostrophe in their email address (i.e. John.O’Neil@nonwhere.com)

Subscription requests results in the following error:

{
  "error": {
    "code": "ExtensionError",
    "message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Mailbox info is stale.]",
    "innerError": {
      "request-id": "11a8e561-0966-49aa-ac87-f884c1582764",
      "date": "2019-02-25T22:46:40"
    }
  }
}

This issue is seen with users in multiple tenants for the same application. We are able to reproduce this in our test tenant.

In our testing, authorization with application bearer token fails to subscribe to those users’ calendar, who has an apostrophe in the email address. Application is able to subscribe correctly to other users’ calendar who does not have an apostrophe in the email address.

Also, the same EXACT request succeeds with user’s own token for authorization header. So, it looks like application processing has a different code path that errors for users with an apostrophe in the email address.

来源:https://stackoverflow.com/questions/57299375/unable-to-subscribe-to-microsoft-graph-api-calendar-is-user-has-apostrophe-in-na

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