Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I want to register an App (service principle) and run codes to call Power BI Rest API.
In the documentation (Admin - Get Activity Events - REST API (Power BI Power BI REST APIs) | Microsoft Learn) , it said:
When running under service prinicipal authentication, an app must not have any admin-consent required premissions for Power BI set on it in the Azure portal.
I don't understand what it means. My registered app have "Tenant.ReadWrite.All" permission which is granted by Global Admin. The App is able to refresh dataset by calling API. However the same App can only get 401 response for
Solved! Go to Solution.
Hey @Azure_newbie ,
Here is an article on how to do it:
Or, here is the Guy in a Cube video:
Create a Power BI app registration in 6 steps - Guy in a Cube
Proud to be a Datanaut!
Private message me for consulting or training needs.
" app must not have any admin-consent required premissions for Power BI " actually means you need to remove all permission disregard it is granted or not. Just remove all permission under "API permission".
" app must not have any admin-consent required premissions for Power BI " actually means you need to remove all permission disregard it is granted or not. Just remove all permission under "API permission".
Hey @Azure_newbie ,
Here is an article on how to do it:
Or, here is the Guy in a Cube video:
Create a Power BI app registration in 6 steps - Guy in a Cube
Proud to be a Datanaut!
Private message me for consulting or training needs.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!