<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI activity and usage metrics in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-activity-and-usage-metrics/m-p/3008175#M40634</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Permissions&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.&lt;/LI&gt;
&lt;LI&gt;Delegated permissions are supported.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;When running under service prinicipal authentication, an app&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;must not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have any admin-consent required permissions for Power BI set on it in the Azure portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So According to your statement, I think you use service principal to authenticate, please remove all admin-consent required permissions in Azure portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events" target="_self"&gt;Admin - Get Activity Events&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may refer to this &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;offical blog&lt;/A&gt; to learn how to configure a service principal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 06:43:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-09T06:43:41Z</dc:date>
    <item>
      <title>Power BI activity and usage metrics</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-activity-and-usage-metrics/m-p/3007692#M40630</link>
      <description>&lt;P&gt;I am trying to get all my power bi tentants usage metrics and activity events. I am trying to use in powershell the command&amp;nbsp;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?&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="permissions.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/851644iA5654D4861C0C736/image-size/large?v=v2&amp;amp;px=999" role="button" title="permissions.png" alt="permissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 22:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-activity-and-usage-metrics/m-p/3007692#M40630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-08T22:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI activity and usage metrics</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-activity-and-usage-metrics/m-p/3008175#M40634</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Permissions&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.&lt;/LI&gt;
&lt;LI&gt;Delegated permissions are supported.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;When running under service prinicipal authentication, an app&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;must not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have any admin-consent required permissions for Power BI set on it in the Azure portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So According to your statement, I think you use service principal to authenticate, please remove all admin-consent required permissions in Azure portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events" target="_self"&gt;Admin - Get Activity Events&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may refer to this &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;offical blog&lt;/A&gt; to learn how to configure a service principal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 06:43:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-activity-and-usage-metrics/m-p/3008175#M40634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-09T06:43:41Z</dc:date>
    </item>
  </channel>
</rss>

