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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Rutvik_08
New Member

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

 

2 ACCEPTED SOLUTIONS
DataVitalizer
Solution Sage
Solution Sage

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

View solution in original post

lbendlin
Super User
Super User

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

View solution in original post

5 REPLIES 5
v-pgoloju
Community Support
Community Support

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

v-pgoloju
Community Support
Community Support

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

v-pgoloju
Community Support
Community Support

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

lbendlin
Super User
Super User

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

DataVitalizer
Solution Sage
Solution Sage

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors