Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
roxane_cz
Frequent Visitor

Power BI REST API Authentication with Postman

Hello, 

 

CONTEXT

I am trying to get the lineage data, user data through PowerBI REST API, to be able to manage the usage of the tool and of the objects (reports, datasets, dataflows, ...) basically doing the admin. 

I have tried to configure some simple calls to the API with Postman with the help of this tutorial (How to Call the Power BI REST API from Postman - Carl de Souza). I have set up the App in Azure and I am the owner of the app. The client ID is the tenantID and the secret has been set up

 

ISSUE 

When I try this POST: https://login.microsoftonline.com/common/oauth2/token

I get this error message 

AADSTS65001: The user or administrator has not consented to use the application with ID 'xxxxxxxxxxx' named 'xxxxxxxx'

roxane_cz_0-1619446551489.png

 

Have anyone encountered this before? I have tried looking as some AAD forum threads but nothing that could help me... 

Thanks in advance!

2 ACCEPTED SOLUTIONS
kasiaw29
Resolver II
Resolver II

roxane_cz
Frequent Visitor

all good now 🙂 

 

using the app client id and the client secret value and all is working well 🙂 

View solution in original post

5 REPLIES 5
WRVISHNU
New Member

Did u managed to resolve this issue ?

roxane_cz
Frequent Visitor

all good now 🙂 

 

using the app client id and the client secret value and all is working well 🙂 

v-yiruan-msft
Community Support
Community Support

Hi @roxane_cz ,

Please review the solution in the following links, hope they can help you resolve the problem.

REST API Silent Authentication (Token)

The user or administrator has not consented to use the application

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kasiaw29
Resolver II
Resolver II

I'm not sure if I can help but check this post seems similar:

 https://stackoverflow.com/questions/59282141/aadsts65001-the-user-or-administrator-has-not-consented... 

 

Thanks,

Kasia 

Hi kasia, 

 

thanks for that link! 

seems, related, I have tried it but I still have an issue with a parameter, the redirection_uri for this object 😕 

so still not working

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.