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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Prakash1050
Helper III
Helper III

Power Automate - REST API

Hi All,
 
I need to get refresh history of my Power Dataset using Power automate HTTP request via Azure Active Directory OAuth.
 
I complete all the Process in Azure Portal like, Register Application to get required IDs, Give API Permission for dataset Dataset.Read.All and in HTTP URL give group id and dataset id from the dataset.
This Process all are complete with the help by the below video,
 
But I got the error : Unauthorized.
 
Prakash1050_2-1732690139286.png

 

I don't have any license for Power automate. Is it Problem for this?
I have Trial Environment and Public API is working is fine. But, here got this error.
 
How to resolve this? 
Please help me.
Thanks in advance.
1 ACCEPTED SOLUTION
Poojara_D12
Super User
Super User

Hi @Prakash1050 

The "Unauthorized" error you're seeing is likely due to missing or incorrect permissions related to your Azure Active Directory (AAD) app, not having the right Power BI license, or incorrect OAuth authentication.

  • Power Automate requires either a Power BI Pro or Premium Per User (PPU) license to access Power BI API resources.
  • A trial environment without the correct license may cause this issue, especially if you're trying to interact with datasets in the Power BI Service.
  • Also, Ensure that your AAD app has Dataset.Read.All permission under API Permissions in the Azure Portal.
  • After assigning the permissions, don’t forget to Grant Admin Consent for those permissions in the Azure Portal.
  • If you’re missing the Power BI Pro license or don't have the right permissions in the workspace, those will cause authorization issues.
  • You'll need to get the appropriate license and verify the permission setup in Azure AD.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS  (360 remaining for 500 SUBS) Please support!!

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

View solution in original post

3 REPLIES 3
Poojara_D12
Super User
Super User

Hi @Prakash1050 

The "Unauthorized" error you're seeing is likely due to missing or incorrect permissions related to your Azure Active Directory (AAD) app, not having the right Power BI license, or incorrect OAuth authentication.

  • Power Automate requires either a Power BI Pro or Premium Per User (PPU) license to access Power BI API resources.
  • A trial environment without the correct license may cause this issue, especially if you're trying to interact with datasets in the Power BI Service.
  • Also, Ensure that your AAD app has Dataset.Read.All permission under API Permissions in the Azure Portal.
  • After assigning the permissions, don’t forget to Grant Admin Consent for those permissions in the Azure Portal.
  • If you’re missing the Power BI Pro license or don't have the right permissions in the workspace, those will cause authorization issues.
  • You'll need to get the appropriate license and verify the permission setup in Azure AD.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS  (360 remaining for 500 SUBS) Please support!!

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Hi @Poojara_D12 ,

 

Thanks for you reply. Now the error is gone when I give admin API Permission in Azure Portal and enable all API option in Power BI - Tenant Setting.

Glad to hear that!! 🙂

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.