<?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 Token Generation in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3394101#M44037</link>
    <description>&lt;P&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;I received the client_id and client_secret from Azure Active directory app registration.&lt;BR /&gt;&lt;BR /&gt;You asked: "&lt;SPAN&gt;Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?"&lt;BR /&gt;How can I grant the Azure Active Directory app registration for all workspaces?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 07:05:20 GMT</pubDate>
    <dc:creator>innocence84</dc:creator>
    <dc:date>2023-08-23T07:05:20Z</dc:date>
    <item>
      <title>Power BI Token Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3389185#M43994</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a authorization token via postman.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-08-21 at 1.29.15 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/957859iD14162ECC02C0343/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-08-21 at 1.29.15 pm.png" alt="Screen Shot 2023-08-21 at 1.29.15 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I used this token while calling the groups Rest API: (&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-08-21 at 1.29.50 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/957860i081C52EF0DDF0C80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-08-21 at 1.29.50 pm.png" alt="Screen Shot 2023-08-21 at 1.29.50 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;&lt;SPAN&gt;But the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;Rest API call just returns one row. However there are dozens of groups/workspaces in the Power BI environment. What may be the cause of the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 03:30:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3389185#M43994</guid>
      <dc:creator>innocence84</dc:creator>
      <dc:date>2023-08-21T03:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Token Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3391577#M44018</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;I checked Azure portal and Power BI admin portal. I could not find any settings that corresponds an app registration and a Power BI workspace.&lt;BR /&gt;Is there any configurating for granting access to a Power BI workspace for the given Azure Active Directory app registration?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;How should we model analysis like license consumption?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2023 05:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3391577#M44018</guid>
      <dc:creator>innocence84</dc:creator>
      <dc:date>2023-08-22T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Token Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3393969#M44035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/430173"&gt;@innocence84&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As I tested in my side, it can return all workpaces which the account can access to.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1692767765272.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/959048i474EDDF1D923EFB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1692767765272.png" alt="vyiruanmsft_0-1692767765272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1692767853953.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/959050i8B327AA36DAFCF1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1692767853953.png" alt="vyiruanmsft_1-1692767853953.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 05:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3393969#M44035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-23T05:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Token Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3394101#M44037</link>
      <description>&lt;P&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;I received the client_id and client_secret from Azure Active directory app registration.&lt;BR /&gt;&lt;BR /&gt;You asked: "&lt;SPAN&gt;Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?"&lt;BR /&gt;How can I grant the Azure Active Directory app registration for all workspaces?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 07:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3394101#M44037</guid>
      <dc:creator>innocence84</dc:creator>
      <dc:date>2023-08-23T07:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Token Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3404006#M44147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/430173"&gt;@innocence84&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following links to grant the service principal access to the workspaces:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;By Powershell:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.workspaces/add-powerbiworkspaceuser?view=powerbi-ps" target="_blank"&gt;Add-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Add-PowerBIWorkspaceUser -Scope Organization -Id 23FCBDBD-A979-45D8-B1C8-6D21E0F4BE50 -UserEmailAddress john@contoso.com -AccessRight Admin&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Grant the access in Power BI Service:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-core#step-7---enable-workspace-access" target="_self"&gt;Enable workspace access&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1693302027433.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961789iF18A63266572D7C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1693302027433.png" alt="vyiruanmsft_0-1693302027433.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 09:40:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Token-Generation/m-p/3404006#M44147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-29T09:40:40Z</dc:date>
    </item>
  </channel>
</rss>

