Unable to obtain free/busy time of calendar using Microsoft Graph API.

Shu, Boots 0 Reputation points

User's image

Error info:

    "error": {
        "code": "MailboxNotEnabledForRESTAPI",
        "message": "The mailbox is either inactive, soft-deleted, or is hosted on-premise.",
        "innerError": {
            "date": "2023-12-05T02:29:56",
            "request-id": "bb7c6b7e-2b8d-4ee3-836c-fa773f3c563d",
            "client-request-id": "bb7c6b7e-2b8d-4ee3-836c-fa773f3c563d"

How should I solve this error problem?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 39,906 Reputation points

    Hi @Shu, Boots

    This error means that the target user is missing an Office 365 license.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.