Forum Discussion
Permissions issue while calling a Rest API
- 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 💡 - 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).
Hi Rutvik_08,
Just following up to see if the response provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.
Best regards,
Prasanna Kumar