API not authenticating with Azure

scottj 11 Reputation points
2025-03-11T18:22:33.7466667+00:00

unable to authenticate API when using Microsoft Graph component and granting access.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,236 questions
{count} votes

2 answers

Sort by: Most helpful
  1. scottj 11 Reputation points
    2025-03-12T01:15:42.6833333+00:00

    yes I know. Tried that and it still doesn't work

    0 comments No comments

  2. Yakun Huang-MSFT 10,555 Reputation points Microsoft External Staff
    2025-03-12T01:50:56.1433333+00:00

    Hello scottj,

    Thank you for reaching out to Microsoft Support!

    If you have no problem granting permissions, then you need to get tokens through different streams depending on the type of permissions you grant.

    Delegated permissions: Use auth code flow to get access tokens

    Application permissions: Access tokens are obtained using client credentials flow

    Reference document:

    https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http

    https://learn.microsoft.com/en-us/graph/auth-v2-service?tabs=http

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.