<?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 REST API gives 403 error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607361#M18321</link>
    <description>&lt;P&gt;Why doesn't the user have access to the group/workspace? I have made it owner/admin...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I get the same error when instead of retrieving a dataset id,&amp;nbsp; I try to create a new dataset in the same group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it necessary to make the user Power BI Service Administrator?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 15:49:01 GMT</pubDate>
    <dc:creator>tripleacoder</dc:creator>
    <dc:date>2019-01-23T15:49:01Z</dc:date>
    <item>
      <title>Power BI REST API gives 403 error (User does not have access to group)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607049#M18313</link>
      <description>&lt;P&gt;I am trying to use the Power BI REST API with a "Power BI master account" - meaning a user account for the "app owns data" scenario.&lt;/P&gt;&lt;P&gt;The account has a Power BI Pro license and is a member of the workspace I am trying to read from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also made the account the owner of the app registration for my app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get a token, but when I call the API to get a data set id from the workspace, I get 403 (Forbidden).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same program works if I use my personal credentials.&lt;/P&gt;&lt;P&gt;What&amp;nbsp;am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 14:50:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607049#M18313</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-23T14:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607157#M18314</link>
      <description>&lt;P&gt;I have promoted the account to Owner/Admin of the workspace, but it doesn't seem to have helped.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 11:24:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607157#M18314</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-23T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607213#M18315</link>
      <description>&lt;P&gt;Using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;System.Net.WebException ex;



Stream stream = ((System.Net.HttpWebResponse)(ex).Response).GetResponseStream();
using (StreamReader sr = new StreamReader(stream))
{
     string text = sr.ReadToEnd();
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to extract more detailed error information from the exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"error":&lt;BR /&gt;{"code":"Unauthorized","message":"User(&amp;lt;ii&amp;gt;76e423fd-314d-42ff-ab23-306f25c46aea&amp;lt;/ii&amp;gt;) does not have access to Group(&amp;lt;ii&amp;gt;2c6f2b64-162d-40c8-934e-44e3075c5ee8&amp;lt;/ii&amp;gt;) with Permissions(ReadWrite)"}&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:06:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607213#M18315</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-23T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607301#M18318</link>
      <description>&lt;P&gt;This is the scope part of the decoded token (which doesn't work):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jsonField"&gt;scp&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="jsonValue"&gt;"Dataset.ReadWrite.All Workspace.ReadWrite.All"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the same part, when using my own credentials (which works):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="jsonField"&gt;scp&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class="jsonValue"&gt;"Dataset.ReadWrite.All Workspace.ReadWrite.All"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;They are equal...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 14:22:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607301#M18318</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-23T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607361#M18321</link>
      <description>&lt;P&gt;Why doesn't the user have access to the group/workspace? I have made it owner/admin...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I get the same error when instead of retrieving a dataset id,&amp;nbsp; I try to create a new dataset in the same group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it necessary to make the user Power BI Service Administrator?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607361#M18321</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-23T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608093#M18335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/96676"&gt;@tripleacoder&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Which API exactly is it?&lt;/P&gt;
&lt;P&gt;2. Which token did you send with the request? Is it the one starts with "eyJ0e" or the one starts with "H4sIAAA"? It should be the former.&lt;/P&gt;
&lt;P&gt;3. Are there any other message about the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 08:55:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608093#M18335</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2019-01-24T08:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608122#M18336</link>
      <description>&lt;P&gt;It seems I found the hidden setting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Manage-Permissions-in-Power-BI-Service/td-p/322832" target="_blank"&gt;https://community.powerbi.com/t5/Service/Manage-Permissions-in-Power-BI-Service/td-p/322832&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, the dataset in the workspace requires the user to be added with "Manage permissions"...&lt;/P&gt;&lt;P&gt;After I did that, the error disappeared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very illogical, since Manage permissions seems to be related to sharing...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:17:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608122#M18336</guid>
      <dc:creator>tripleacoder</dc:creator>
      <dc:date>2019-01-24T09:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API gives 403 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608141#M18337</link>
      <description>&lt;P&gt;Thanks for sharing. I'm glad you solved it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/608141#M18337</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2019-01-24T09:25:46Z</dc:date>
    </item>
  </channel>
</rss>

