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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI activity and usage metrics

I am trying to get all my power bi tentants usage metrics and activity events. I am trying to use in powershell the command Get-PowerBIActivityEvent but I am getting an unathourized error message. Our company is very large so they won't make me an admin of the tenant BUT they will give me the following permissions to a service pricipal account (see image below). I also have tenant read.all and tenant.readwrite.all permissions assigned to this service principal account. From the research i've done if you have the office 365 Management APIs then you should be able to get usage metrics and activities using this or another API and Powershell? Any help is greatly appreciated. Are there other permissions I need my service pricipal account to have? permissions.png

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous ,

 

Permissions

  • The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
  • Delegated permissions are supported.

When running under service prinicipal authentication, an app must not have any admin-consent required permissions for Power BI set on it in the Azure portal.

 

So According to your statement, I think you use service principal to authenticate, please remove all admin-consent required permissions in Azure portal.

 

For reference:

Admin - Get Activity Events

 

You may refer to this offical blog to learn how to configure a service principal.

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous ,

 

Permissions

  • The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
  • Delegated permissions are supported.

When running under service prinicipal authentication, an app must not have any admin-consent required permissions for Power BI set on it in the Azure portal.

 

So According to your statement, I think you use service principal to authenticate, please remove all admin-consent required permissions in Azure portal.

 

For reference:

Admin - Get Activity Events

 

You may refer to this offical blog to learn how to configure a service principal.

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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