Trying to execute below API
https://graph.microsoft.com/v1.0/users/{principalname}/onlineMeetings
With Authorization token and below request body.
{
"startDateTime":"2019-07-12T14:30:34.2444915-07:00",
"endDateTime":"2019-07-12T15:00:34.2464912-07:00",
"subject":"User Token Meeting"
}
Generate token is having scope as as mentioned below.
AccessReview.Read.All AccessReview.ReadWrite.All Agreement.Read.All Agreement.ReadWrite.All AgreementAcceptance.Read AgreementAcceptance.Read.All Analytics.Read AppCatalog.ReadWrite.All ApprovalRequest.Read.AdminConsentRequest ApprovalRequest.Read.CustomerLockbox ApprovalRequest.Read.EntitlementManagement ApprovalRequest.Read.PriviligedAccess ApprovalRequest.ReadWrite.AdminConsentRequest ApprovalRequest.ReadWrite.CustomerLockbox ApprovalRequest.ReadWrite.EntitlementManagement ApprovalRequest.ReadWrite.PriviligedAccess Calendars.ReadWrite Contacts.ReadWrite Files.ReadWrite.All Mail.ReadWrite Notes.ReadWrite.All openid People.Read profile Sites.ReadWrite.All Tasks.ReadWrite User.Read User.Read.All User.ReadBasic.All User.ReadWrite User.ReadWrite.All UserActivity.ReadWrite.CreatedByApp UserNotification.ReadWrite.CreatedByApp email OnlineMeetings.ReadWrite
Still getting 400 error response .
Response Body :
{"error":{"code":"AuthenticationError","message":"Error authenticating with resource","innerError":{"date":"2022-03-03T08:20:29","request-id":"319e7b55-a751-46ac-88c6-0ebd684d1d79","client-request-id":"319e7b55-a751-46ac-88c6-0ebd684d1d79"}}}
Account type used here is Corporate.

