Trying to create a Teams meeting, but get "Error authenticating with resource"

Alex 1 Reputation point
2022-05-20T10:09:53.727+00:00

I have created an Azure AD application using gmail email account, and now trying to allow my app users to create MS Teams meetings, after authenticating their accounts (@Stuff .com too) with my app. But I always get this error as a response for a post request to: "https://graph.microsoft.com/v1.0/me/onlineMeetings"

{
"error": {
"code": "AuthenticationError",
"message": "Error authenticating with resource",
"innerError": {
"date": "2022-05-20T09:51:16",
"request-id": "919db19e-ac1e-40a0-9ed8-c9197c09d2ce",
"client-request-id": "919db19e-ac1e-40a0-9ed8-c9197c09d2ce"
}
}
}

am getting same erorr on running same at graph explorer

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,515 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,823 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 36,736 Reputation points
    2022-05-23T02:16:02.83+00:00

    Hi @Alex

    Creating onlineMeeting with a personal account is not supported, you should use a work account. Or add your @gmail.com account as a guest to your work tenant.

    204476-image.png

    204458-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.