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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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