Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |