Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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?
Solved! Go to Solution.
Hi @Anonymous ,
Permissions
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:
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.
Hi @Anonymous ,
Permissions
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:
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |