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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Azure_newbie
Helper II
Helper II

How to register a service principle to Get Activity Events

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

/admin/activityevents. How should I setup the service principle properly?

 

 

2 ACCEPTED SOLUTIONS
collinq
Super User
Super User

Hey @Azure_newbie ,

 

Here is an article on how to do it:

Register The Power BI Application In Azure AD - Power BI Embedded - Step By Step - Part Two (c-sharp...

 

Or, here is the Guy in a Cube video:

Create a Power BI app registration in 6 steps - Guy in a Cube

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

Azure_newbie
Helper II
Helper II

" 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".

View solution in original post

2 REPLIES 2
Azure_newbie
Helper II
Helper II

" 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".

collinq
Super User
Super User

Hey @Azure_newbie ,

 

Here is an article on how to do it:

Register The Power BI Application In Azure AD - Power BI Embedded - Step By Step - Part Two (c-sharp...

 

Or, here is the Guy in a Cube video:

Create a Power BI app registration in 6 steps - Guy in a Cube

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors