Group calendar event creation failed

POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events Accept: application/json Authorization: Bearer <Token> Content-Type: application/json; charset=utf-8 { "originalStartTimeZone": "UTC", "originalEndTimeZone": "UTC", "start": { "dateTime": "2015-12-03T09:30:00-00:00", "timeZone": "UTC" }, "end": { "dateTime": "2015-12-03T10:30:00-00:00", "timeZone": "UTC" }, "responseStatus": { "response": "Accepted", "time": "2015-12-01T18:34:00-08:00" }, "reminderMinutesBeforeStart": 15, "isReminderOn": true } 

Mistake:

 { "error": { "code": "ErrorInternalServerError", "message": "The SMTP address has no mailbox associated with it.", "innerError": { "request-id": "f62423b0-0ade-494d-8c8c-1b56db60b524", "date": "2015-12-02T10:39:44" } } } 

I tried with both of the links below,

 POST /groups/<id>/events POST /groups/<id>/calendar/events 

I tried with different types of groups that include security enabled, enabled mail and Unified Groups, but I see the same error message, any help would be appreciated.

+7
office365 microsoft-graph office365api office365-restapi
source share
2 answers

Access to the group calendar is not supported in the authorization flow for applications only.

We are working on returning the best error for this case.

+4
source share

I believe that you will get this error for security groups or mail-enabled security groups. This will ONLY work for Unified groups (O365). Only those types of groups have content associated with them. To make sure that you create a single group correctly, here is the request and the 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 for .. / groups // events should work. NOTE. Creating a basic group mailbox can take several seconds (we are improving something), so creating an event immediately after creating a group may fail.

Hope this helps,

+2
source share

All Articles