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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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