Forum Discussion
The endpoint getStaffAvailability returning Unknown Error
I have the exact same issue. My application has bookings.Manage.All Application but I get unknownError , Cant get it to work.
To get the application I use the following is that correct ?
curl --location 'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id={client_id}' \
--data-urlencode 'scope=https://graph.microsoft.com/.default' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_secret={client_secret}'
After a lot of try and error. I finally got it working.
Application permission need to have Bookings.Read.All. If you have only Bookings.manage.All the endpoint won't work which doesn't make sense according the documentation mentioning higher permission : Booking.Manage.All