Facing issues while scheduling meeting using MicrosoftGraphAPI

Siripuram Arun 0 Reputation points
2024-07-18T05:52:59.7233333+00:00

Requirement is to scheduling teams meeting if the outlook/teams is not installed. So trying to schedule by using MicrsoftGraphAPI.  Given all the required delegated and application permissions but getting below issue.

Required solution immediately, as this has to be done on priority.

Highly appreciated quick response. 

"code": "BadRequest",

"message": "/me request is only valid with delegated authentication flow"

Please find below attached screenshots

User's image

Body:

User's image

Given Permissions:

User's image

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,320 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,278 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,283 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,570 Reputation points Microsoft Vendor
    2024-07-18T08:27:11.02+00:00

    Hi @Siripuram Arun

    When you call the /me endpoint, you need to use delegation permissions, and it shows from your screenshot that you have granted the appropriate delegation permissions, and then when you get the token, you need the user to log in interactively, you need to use auth code flow, please refer to the following documentation for access tokens:

    https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow

    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.


Your answer

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