Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 API. I'm using a service principal account to call the API, the error that I'm getting is this:
Status:{'requestId': '4f3f108f-ba9f-4d3c-81e7-57e611eaaa6b', 'errorCode': 'InsufficientScopes', 'message': 'The caller does not have sufficient scopes to perform this operation'}
Can somebody help with how to resolve this?
PS: I'm not Fabric Admin.
Solved! Go to Solution.
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 💡
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 troubleshoot points provided by community members were helpful in addressing the issue. If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar
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
Hi @Rutvik_08,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to @lbendlin and @DataVitalizer for prompt and helpful responses.
Just following up to see if the troubleshoot points provided by community members were helpful in addressing the issue.
If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar
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
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 💡
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.