1

I want to create meeting event. I have added user in azure ad and also assigned delegated permission Calendars.ReadWrite.

But while creating event by following lines it throws error:

var response = await graphClient.Me.Calendar.Events.Request().AddAsync(@event);

Code: MailboxNotEnabledForRESTAPI Message: The mailbox is either inactive, soft-deleted, or is hosted on-premise.

AABhatt
  • 25
  • 1
  • 5
  • According to [this section](https://learn.microsoft.com/en-us/graph/api/calendar-post-events?view=graph-rest-1.0&tabs=csharp#http-request) and your error message, I think you should check if you have a default calendar first by calling `https://graph.microsoft.com/v1.0/me/calendars` – Tiny Wang Mar 07 '22 at 08:41
  • @TinyWang Same is working fine if I allow Microsoft 365 developer license to this user from 365 admin portal. – AABhatt Mar 07 '22 at 09:26
  • Then the issue solved right? Congratulations : ) – Tiny Wang Mar 07 '22 at 09:49
  • @TinyWang Yes, but why it is not working with Azure AD. There was some answer regarding this is I need those Azure Ad users on online exchange. – AABhatt Mar 07 '22 at 10:01
  • `Microsoft 365 developer license` maybe the result. In my opinion, your users may don't have a licence for them to using Calendar, so we can't create event for them. – Tiny Wang Mar 07 '22 at 10:06

1 Answers1