Forum Discussion

Prakash1050's avatar
Prakash1050
Helper III
1 year ago
Solved

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 Applica...
  • Poojara_D12's avatar
    1 year ago

    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!!