<?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 REST API App only token getting 401 unauthorised errors in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-App-only-token-getting-401-unauthorised-errors/m-p/722889#M19755</link>
    <description>&lt;P&gt;I need to deploy a pbix file to power I online, inside a workspace, but I cannot use a username and password. Only an app clientID and secret. I’m trying to create an unattending PowerShell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a delegation role for power I that is&amp;nbsp;&lt;SPAN&gt;Tenant.ReadWrite.All, which by the sounds of things should allow you to do anything within powerBI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, any attempts at a connection, I can get a bearer token, but any REST API calls after that always returns with a 401 unauthorised status message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can share my code tomorrow (when I’m on my work pc), but is it actually possible to do what I’m attempting. Any examples or prebuilt PowerShell powerBI modules always needs a username and password for authentication.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 20:02:34 GMT</pubDate>
    <dc:creator>pmatthews05</dc:creator>
    <dc:date>2019-06-24T20:02:34Z</dc:date>
    <item>
      <title>REST API App only token getting 401 unauthorised errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-App-only-token-getting-401-unauthorised-errors/m-p/722889#M19755</link>
      <description>&lt;P&gt;I need to deploy a pbix file to power I online, inside a workspace, but I cannot use a username and password. Only an app clientID and secret. I’m trying to create an unattending PowerShell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a delegation role for power I that is&amp;nbsp;&lt;SPAN&gt;Tenant.ReadWrite.All, which by the sounds of things should allow you to do anything within powerBI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, any attempts at a connection, I can get a bearer token, but any REST API calls after that always returns with a 401 unauthorised status message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can share my code tomorrow (when I’m on my work pc), but is it actually possible to do what I’m attempting. Any examples or prebuilt PowerShell powerBI modules always needs a username and password for authentication.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 20:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-App-only-token-getting-401-unauthorised-errors/m-p/722889#M19755</guid>
      <dc:creator>pmatthews05</dc:creator>
      <dc:date>2019-06-24T20:02:34Z</dc:date>
    </item>
  </channel>
</rss>

