While trying to access graph API in power bi through OData i get message "Access to the resource is forbidden

Vidisha Arkasali 1 Reputation point
2022-01-26T12:36:43.247+00:00

When i am trying to access my graph API endpoint URL in Power BI through OData. I get message saying "Access to the resource is forbidden".

Microsoft Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,761 Reputation points Microsoft External Staff
    2022-01-26T14:49:12.427+00:00

    Hi @Vidisha Arkasali ,

    To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. The access token contains information about your app and the permissions it has for the resources and APIs available through Microsoft Graph. To get an access token, your app must be registered with the Microsoft identity platform and be authorized by either a user or an administrator for access to the Microsoft Graph resources it needs.

    Please refer to this Microsoft documentation how to register app and get access token from Microsoft Graph auth-concepts

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have 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.