<?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 Authentication with Postman in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806547#M29181</link>
    <description>&lt;P&gt;I'm not sure if I can help but check this post seems similar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/59282141/aadsts65001-the-user-or-administrator-has-not-consented-to-use-the-application?rq=1" target="_blank"&gt;https://stackoverflow.com/questions/59282141/aadsts65001-the-user-or-administrator-has-not-consented-to-use-the-application?rq=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kasia&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 16:01:06 GMT</pubDate>
    <dc:creator>kasiaw29</dc:creator>
    <dc:date>2021-04-26T16:01:06Z</dc:date>
    <item>
      <title>Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806266#M29179</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONTEXT&lt;/P&gt;&lt;P&gt;I am trying to get the lineage data, user data through PowerBI REST API, to be able to manage the usage of the tool and of the objects (reports, datasets, dataflows, ...) basically doing the admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to configure some simple calls to the API with Postman with the help of this tutorial (&lt;A href="https://carldesouza.com/how-to-call-the-power-bi-rest-api-from-postman/" target="_blank" rel="noopener"&gt;How to Call the Power BI REST API from Postman - Carl de Souza&lt;/A&gt;). I have set up the App in Azure and I am the owner of the app. The client ID is the tenantID and the secret has been set up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISSUE&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try this POST:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get this error message&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;AADSTS65001:&amp;nbsp;The&amp;nbsp;user&amp;nbsp;or&amp;nbsp;administrator&amp;nbsp;has&amp;nbsp;not&amp;nbsp;consented&amp;nbsp;to&amp;nbsp;use&amp;nbsp;the&amp;nbsp;application&amp;nbsp;with&amp;nbsp;ID&amp;nbsp;'xxxxxxxxxxx'&amp;nbsp;named&amp;nbsp;'xxxxxxxx'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roxane_cz_0-1619446551489.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/502029iCC9522961C19B67B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="roxane_cz_0-1619446551489.png" alt="roxane_cz_0-1619446551489.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone encountered this before? I have tried looking as some AAD forum threads but nothing that could help me...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Apr 2021 14:15:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806266#M29179</guid>
      <dc:creator>roxane_cz</dc:creator>
      <dc:date>2021-04-26T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806547#M29181</link>
      <description>&lt;P&gt;I'm not sure if I can help but check this post seems similar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/59282141/aadsts65001-the-user-or-administrator-has-not-consented-to-use-the-application?rq=1" target="_blank"&gt;https://stackoverflow.com/questions/59282141/aadsts65001-the-user-or-administrator-has-not-consented-to-use-the-application?rq=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kasia&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 16:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806547#M29181</guid>
      <dc:creator>kasiaw29</dc:creator>
      <dc:date>2021-04-26T16:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806634#M29182</link>
      <description>&lt;P&gt;Hi kasia,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for that link!&amp;nbsp;&lt;/P&gt;&lt;P&gt;seems, related, I have tried it but I still have an issue with a parameter, the redirection_uri for this object &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so still not working&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 16:37:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1806634#M29182</guid>
      <dc:creator>roxane_cz</dc:creator>
      <dc:date>2021-04-26T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1810688#M29208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/293545"&gt;@roxane_cz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the solution in the following links, hope they can help you resolve the problem.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Silent-Authentication-Token/m-p/156004" target="_self"&gt;&lt;STRONG&gt;REST API Silent Authentication (Token)&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi/issues/19" target="_self"&gt;&lt;STRONG&gt;The user or administrator has not consented to use the application&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:36:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1810688#M29208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-28T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1959318#M30533</link>
      <description>&lt;P&gt;all good now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the app client id and the client secret value and all is working well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 08:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/1959318#M30533</guid>
      <dc:creator>roxane_cz</dc:creator>
      <dc:date>2021-07-15T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/3288293#M43117</link>
      <description>&lt;P&gt;Did u managed to resolve this issue ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:48:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/3288293#M43117</guid>
      <dc:creator>WRVISHNU</dc:creator>
      <dc:date>2023-06-16T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Authentication with Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/4601682#M59771</link>
      <description>&lt;P&gt;If you are using C#, the request to get access token would be as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var clientHandler = new HttpClientHandler
{
    UseCookies = false,
};
var client = new HttpClient(clientHandler);
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("https://login.microsoftonline.com/&amp;lt;your_tenant_id&amp;gt;/oauth2/v2.0/token"),
    Content = new FormUrlEncodedContent(new Dictionary&amp;lt;string, string&amp;gt;
    {
        { "client_id", "&amp;lt;your_client_id&amp;gt;" },
        { "scope", "https://analysis.windows.net/powerbi/api/.default" },
        { "client_secret", "&amp;lt;your_client_secret&amp;gt;" },
        { "grant_type", "client_credentials" },
    }),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get more details, see: &lt;A href="https://kalcancode.wordpress.com/2025/02/18/powerbiclient-how-to-get-access-token/" target="_blank"&gt;https://kalcancode.wordpress.com/2025/02/18/powerbiclient-how-to-get-access-token/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 14:14:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Authentication-with-Postman/m-p/4601682#M59771</guid>
      <dc:creator>kalluu91</dc:creator>
      <dc:date>2025-03-08T14:14:03Z</dc:date>
    </item>
  </channel>
</rss>

