UnknownError When I try to call https://graph.microsoft.com/v1.0/reports/partners/billing/usage/unbilled/export using my token, it returns a 403 error

ramprasad.r 20 Reputation points
2024-07-02T07:33:28+00:00

When I try to call https://graph.microsoft.com/v1.0/reports/partners/billing/usage/unbilled/export using my token, it returns a 403 error message:

{

"error": {

"code": "UnknownError",

"message": "",

"innerError": {

"date": "2024-07-02T05:49:12",

"request-id": "1862b93c-6afa-4f8d-92b5-dc8c4a603c43",

"client-request-id": "1862b93c-6afa-4f8d-92b5-dc8c4a603c43"

}

}

}

https://techcommunity.microsoft.com/t5/forums/postpage/board-id/AzureMigrationPartnerCommunity

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

Accepted answer
  1. CarlZhao-MSFT 41,771 Reputation points
    2024-07-02T08:38:44.6766667+00:00

    Hi @ramprasad.r

    This is because your user/service principal lacks a valid PartnerBilling.Read.All permission. Please go to Entra ID to grant this permission for the calling app, and don't forget to grant admin consent for this permission.

    User's image

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.