Why is MS Bookings Graph Api call to remove staff member resulting in "UnknownError"

letscode 0 Reputation points
2023-12-04T13:34:30.3233333+00:00

I am facing a weird issue when calling below calendar/bookings graph api endpoint. The error so far is happening only when trying to remove a staff member while all the other calls to create/update calendar/service/staffMember are working fine.

Endpoint

DELETE /solutions/bookingBusinesses/******@def.com/staffMembers/1c13f3ea-30e1-4101-9c0e-98ca5cf49515

Error

{"error":{"code":"UnknownError","message":"","innerError":{"date":"2023-12-04T13:22:09","request-id":"1c13f3ea-30e1-4101-9c0e-98ca5cf49515","client-request-id":"1c13f3ea-30e1-4101-9c0e-98ca5cf49515"}}}

We've an app registered with all the required graph permissions to carry out read/write operations on Calendar/Bookings objects yet its not clear

Bookings.Manage.All Bookings.ReadWrite.All Bookings.Read.All

Can someone please help as there's no helpful error message to understand what might be going wrong here.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu Sharma 500 Reputation points Microsoft External Staff
    2023-12-04T16:21:11.6433333+00:00

    Hi @letscode

    You may be using application-only tokens and that's causing the issue. According to the API documentation, group calendars do not yet support application permissions and you should request an access token using a delegation flow (auth code flow or ROPC flow) with user participation.

    Screenshot 2023-12-04 214932

    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.

    0 comments No comments

  2. letscode 0 Reputation points
    2023-12-04T16:28:59.02+00:00

    Thank you Deepanshu!

    I've checked the details and we're using ROPC flow. As I mentioned all other calls to add/edit calendar/service/staff are working fine, the issue is happening with only staff member DELETE.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.