Forum Discussion

Rutvik_08's avatar
Rutvik_08
New Member
1 year ago
Solved

Permissions issue while calling a Rest API

Hi everyone, I'm trying to create a GitHub action which would help me bulk create tags in Power BI using the rest API bulk create tags but I'm running into a permissions issue when I try to call the ...
  • DataVitalizer's avatar
    1 year ago

    Hi Rutvik_08 


    The InsufficientScopes error means your service principal lacks the necessary API permissions to call the Power BI REST API.

     

    In order to fix this, ensure your Azure AD app registration has the required Power BI permissions like Tenant.ReadWrite.All, grant admin consent, and request an access token with the correct scope and also confirm the service principal has proper workspace access.

     

    Did it work? 👍 A kudos would be appreciated
    🟨 Mark it as a solution to help spread knowledge 💡

     

    🟩 Follow me on LinkedIn

  • lbendlin's avatar
    1 year ago

    Check your token at jws.ms , identify which scope is missing, and add only that scope to your app registration  (principle of least privilege).