403 Forbidden Error-Microsoft Graph API

Cristian 0 Reputation points
2024-05-14T15:52:08.8033333+00:00

Encountering an issue while trying to update calendat using Microsoft Graph API.The error is receiving is a 403 Forbidden error.Granted permissions including Calendar.Readbasic and consent have been given.

{
    "error": {
        "code": "Forbidden",
        "message": "Forbidden",
        "innerError": {
            "date": "2024-05-14T15:30:03",
            "request-id": "60e2a57a-6b44-4039-be4f-636debd10f87",
            "client-request-id": "60e2a57a-6b44-4039-be4f-636debd10f87"
        }
    }
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,874 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 225 Reputation points Microsoft Vendor
    2024-05-14T16:00:05.2966667+00:00

    Hi Cristian,

    Thanks for reaching out!

    Forbidden error occurs when the user might not have enough permissions or might not have a required license.

    I can understand that you are trying to Update the calendar; to update the calendar, you need to consent to the "Calendars.ReadWrite" for user calendar for both delegated and application permissions.

    Document reference: https://learn.microsoft.com/en-us/graph/api/calendar-update?view=graph-rest-1.0&tabs=http#permissions

    Hope this helps.

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

    0 comments No comments