BookingsAPI - Forbidden to get Appointment

Thomas Kison 0 Reputation points
2023-02-28T08:46:49.38+00:00

Hello,

I use the MS Bookings API

solutions/bookingBusinesses/

I call the API with an App-Token

when I call to List all Booking Businesses

solutions/bookingBusinesses

I get HTTP 500 - which is not correct, it should be a 403 Forbidden (as far as the documentation states)

see: https://learn.microsoft.com/en-us/graph/api/bookingbusiness-list?view=graph-rest-1.0

when I call a specific Bookings with

solutions/bookingBusinesses/{businessId}

I get the correct response -> OK

when I try to find all Appointments

solutions/bookingBusinesses/{businessId}/appointments

I get HTTP 403 - Forbidden, which is not correct, because I have the correct permissions ("BookingsAppointment.ReadWrite.All")

{"error": {
   "code": "UnknownError",
   "message": "",
   "innerError":    {
      "date": "2023-02-28T08:43:03",
      "request-id": "c7adcacd-7795-47bb-9681-1b8b5c6116ab",
      "client-request-id": "c7adcacd-7795-47bb-9681-1b8b5c6116ab"
   }
}}

Btw. with delegate access the calls work as expected.

Best Regards

Tom

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

1 answer

Sort by: Most helpful
  1. Gopinath Chennamadhavuni 2,431 Reputation points
    2023-03-24T12:57:53.53+00:00

    Hi @Thomas Kison,

    Thanks for reaching out.

    Error 500 is an expected behavior. As per the documentation, Graph API: GET /solutions/bookingBusinesses will work only with delegated permission.

    Regarding your 2nd issue: HTTP 403 - Forbidden, I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from https://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    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