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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ELIU
Helper II
Helper II

PowerShell cmdlets to run user activity for a PowerBI Servce report

Hi,

 

I was trying to use PowerShell cmdlets to run certain workspace, user activities, etc. metrics. However, I got 'unauthorized' or 'internalServerError' errors. My service account is listed as Power BI Admin account.

 

Does this related to Service Principal Account authorization? If my account is not the service principal account, what do I do to get it? 

Is there any other solutions without having to have a service principal account?

 

Thanks

2 REPLIES 2
AnalyticPulse
Solution Sage
Solution Sage

Hi @ELIU 

you can create service principlal account bye below steps:

On azure portal open azure Active Directory.

Manage>app registration/enterprise application >new registration 

Then cinfigure  the application and register it.

Once the application is registered, you can create a service principal associated with it.

After creating the service principal, assign the necessary permissions to it. This could include permissions to access Azure resources, such as Power BI workspaces or data.


Learn Power BI free:

https://analyticpulse.blogspot.com

Learn Power BI free

DAX Functions

Powerbi Visualisation

 

Thank you @AnalyticPulse But I guess I have tried to ask the question: why exactly did I get the InternalServerError when trying to run the Powershell script?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.