<?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: 401 unauthorised when calling API client.Group.GetGroups() in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/1948832#M30431</link>
    <description>&lt;P&gt;Karl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you solve this? I have the same issue.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 18:03:18 GMT</pubDate>
    <dc:creator>Mbalcarek</dc:creator>
    <dc:date>2021-07-09T18:03:18Z</dc:date>
    <item>
      <title>401 unauthorised when calling API client.Group.GetGroups()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/519560#M16050</link>
      <description>&lt;P&gt;We are embedding a report in a website using the "User Owns Data" method as described here &lt;A href="https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/User%20Owns%20Data" target="_self"&gt;https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/User%20Owns%20Data&lt;/A&gt;.&lt;BR /&gt;When we attempt to access the report using a AD guest user, we get a 401 unauthorised exception when calling the client.Groups.GetGroups() API call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This embedded report is successfully working when we log in as the user who published the report and owns the workspace.&lt;/LI&gt;&lt;LI&gt;We have added the guest user to the organisations active directory via invite guest&lt;/LI&gt;&lt;LI&gt;the guest user is from an external azure AD and is not using a social account.&lt;/LI&gt;&lt;LI&gt;This guest user has been allocated a PowerBI Pro license as outlined in &lt;A href="https://docs.microsoft.com/en-us/power-bi/service-admin-azure-ad-b2b " target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/service-admin-azure-ad-b2b &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;The guest user has had the report shared with them.&lt;/LI&gt;&lt;LI&gt;The dataset has been set up with Row Level Security which has been configured for the guest user.&lt;/LI&gt;&lt;LI&gt;The guest user can access the report by using the link for that report (from the share screen) i.e. "&lt;A href="https://app.powerbi.com/groups/me/reports/[Report" target="_blank"&gt;https://app.powerbi.com/groups/me/reports/[Report&lt;/A&gt; Guid]?ctid=[Guid ????]"&lt;/LI&gt;&lt;LI&gt;The guest user can not access it from the "WebURL" of the API GetReport response i.e. "&lt;A href="https://app.powerbi.com/reports/[report" target="_blank"&gt;https://app.powerbi.com/reports/[report&lt;/A&gt; guid]"&lt;/LI&gt;&lt;LI&gt;We have attempted to just get the report (in case it was listing groups that was the cause) but client.Reports.GetReportInGroup(groupId, reportId) also causes a 401.&lt;/LI&gt;&lt;LI&gt;Authenication for all users is via &lt;A href="https://login.windows.net/common/oauth2/authorize/" target="_blank"&gt;https://login.windows.net/common/oauth2/authorize/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;We have checked permissions for the registered app and have granted everything but the ones marked "requires admin"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point I'm not sure if this is a bug or I've missed something or we are trying to do something that is unsupported, any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 07:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/519560#M16050</guid>
      <dc:creator>karl-LT</dc:creator>
      <dc:date>2018-09-19T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: 401 unauthorised when calling API client.Group.GetGroups()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/1948832#M30431</link>
      <description>&lt;P&gt;Karl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you solve this? I have the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 18:03:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/1948832#M30431</guid>
      <dc:creator>Mbalcarek</dc:creator>
      <dc:date>2021-07-09T18:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: 401 unauthorised when calling API client.Group.GetGroups()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/1949519#M30434</link>
      <description>&lt;P&gt;Unfortunately no.&amp;nbsp; We ended up changing directions shortly after this was raised and decided not to embeded the reports.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 09:15:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-unauthorised-when-calling-API-client-Group-GetGroups/m-p/1949519#M30434</guid>
      <dc:creator>karl-LT</dc:creator>
      <dc:date>2021-07-10T09:15:54Z</dc:date>
    </item>
  </channel>
</rss>

