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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anchal
Regular Visitor

Dataflow transaction API

<span>Hey, ai want to get the dataflow refresh details and i am trying to hit the dataflow transactions power bi rest api in power automate using service principal. But it is giving an unauthorised as error ..detailed error is - service principal is not allowed by tenant admin switch ... Can someone plz help what exact access permission does the service prinicipal need in the client environment  to hit the api ?</span>

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Anchal 

Regarding the issue you raised, my solution is as follows:

1.First, based on your error message, we think it may be due to insufficient permissions, and you can try assigning roles to your service principal:

vlinyulumsft_0-1725848462026.png
Azure - Creating Service Principal with Tenant Admin Permission - Stack Overflow
2.
Second, you can check that you have the following enabled in the admin portal:

vlinyulumsft_1-1725848462029.png

3.Next, check whether the security group to which your service principal belongs has the privilege of member or above:

vlinyulumsft_2-1725848495082.png

 


Solved: Power Bi REST API - 401 Authorization error when u... - Page 2 - Microsoft Fabric Community

4.Finally, check whether API Permission is enabled.

vlinyulumsft_3-1725848495084.png


Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @Anchal 

Regarding the issue you raised, my solution is as follows:

1.First, based on your error message, we think it may be due to insufficient permissions, and you can try assigning roles to your service principal:

vlinyulumsft_0-1725848462026.png
Azure - Creating Service Principal with Tenant Admin Permission - Stack Overflow
2.
Second, you can check that you have the following enabled in the admin portal:

vlinyulumsft_1-1725848462029.png

3.Next, check whether the security group to which your service principal belongs has the privilege of member or above:

vlinyulumsft_2-1725848495082.png

 


Solved: Power Bi REST API - 401 Authorization error when u... - Page 2 - Microsoft Fabric Community

4.Finally, check whether API Permission is enabled.

vlinyulumsft_3-1725848495084.png


Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anchal
Regular Visitor

Any one can help here ? Thankyou

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.