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
v-linyulu-msft
Community Support
Community Support

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
v-linyulu-msft
Community Support
Community Support

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

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)