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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
max-s21
New Member

Problem with Permissions in Managed Identity for Power BI API Refresh

I am currently developing an Azure function that is supposed to trigger the Power BI API to refresh a Power BI dataset. I have registered my Azure function as a managed identity and added it to a security group in Azure AD that has access to the Power BI API. However, when i try to refresh the dataset using the Power BI API, i am encountering a problem with permissiond in the token provided by the managed identity credential function in my Python Azure function. I have also tested my function for several other features, like reading all datasets in one workspace (because you only need read.all permissions then) but it doesn't work.

 

I have followed all the necessary steps to grant the managed identity the required permissions, but i am still not able to refresh the dataset. I have decoded and checked the managed identity token and it seems to be missing the necessary permissions. I cannot see any permission (the whole "scope" part is missing)

 

Has anyone else encountered a similar issue when using a managed identity to access the Power BI API? If so, can you share any solutions or suggestions that might help me resolve this issue?

 

Any help would be grantly aprreciated. Thank you!

1 REPLY 1
NandanHegde
Super User
Super User

This is the one I am referring :

https://datasharkx.wordpress.com/2022/11/05/refresh-power-bi-dataflow-dataset-from-azure-data-factor...

 

Follow first 2 steps for access aspects




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

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

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.