Create groups calendar events fails

二次信任 提交于 2019-11-30 20:22:17

Group calendar access is not supported in app-only authorization flow.

We are working on returning a better error for this case.

I believe that you will get this error for security groups or mail-enabled security groups. This will ONLY work for Unified (O365) groups. Only those types of group have content associated with them. To ensure you are creating a unified group correctly, here's the request and payload of a typical request:

POST https://graph.microsoft.com/v1.0/groups

{
  "description":"Group 5bff4 is the best ever",
  "displayName":"Unified group 5bff4",
  "groupTypes":["Unified"],
  "mailEnabled":true,
  "mailNickname":"Group5bff4",
  "securityEnabled":false
}

Then your request to ../groups//events should work. NOTE: creation of the underlying group mailbox may take a few seconds (something we are working to improve), so creation of the event directly after group creation may fail.

Hope this helps,

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