Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
I am trying to design a simple web app which can use power BI REST API to refresh a dataset.
But I stuck on how to get the authorization token from Azure Directory.
I tried to use POSTMAN and get a token but it return "401 unauthorize error" when I try to refresh the dataset.
But if I use the token I get from microsoft try it link (Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Docs ), it works.
Is there anybody here can help on how to get the correct authorization token?
Thanks
Thanks for the replies but it still doesn't work, our company use DUO as a second authorization, is anybody have the experience for that?
Hi @lilian7300 ,
Please refer to this blog:
https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
When you acquire an access token, you must request a permission scope of Dataset.ReadWrite.All.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |