Graph API error: InvalidAuthenticationToken error when requesting omlinemeeting: CreateOrGet.

yuka 46 Reputation points
2021-11-01T09:51:47.127+00:00

I would like to call the onlinemeeting:CreateOrGet API from an application built with the no-code tool bubble using an application token.

onlineMeeting: createOrGet

When I request the API, I get an "InvalidAuthenticationTokenv" error.
Can you please tell me where I am going wrong in the steps so far?

  • Register my app with AzureAD
    Register the web app to be built by Bubble. Set up the redirect URI, client secret, etc.
    145481-1.png
  • Configure the necessary API permissions in CreateOrGet and get the admin permission from AzureAD.
    145472-2.png
  • Get an access token without user.
    Get access without a user

145417-3.png

  • Request and response for CreateOrGet.
    header
    145464-createorget-header.png
    body
    145457-createorget-body-2.png

Thanks in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,649 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 37,216 Reputation points
    2021-11-02T01:39:18.29+00:00

    I noticed that you are requesting the token of your custom api. Obviously, the token of the custom api cannot call MS graph api, so you only need to change the scope to: https://graph.microsoft.com/.default.

    145617-image.png

    By the way, when you use application permissions, your administrator must create application access policy and grant users, please pay attention to the description of the document.


    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.

0 additional answers

Sort by: Most helpful