<?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 Embedded API - get report object without workspaceId in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Embedded-API-get-report-object-without-workspaceId/m-p/906393#M22057</link>
    <description>&lt;P&gt;Is it possible for me to retrieve a report object from the API without passing in a workspaceId and while using a service principal to authenticate? When I try to call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Reports&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetReportAsync&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;reportId&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I get a 403 saying the application is not permitted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However using the same service principal I am successfully able to make a call and retrieve the report using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Reports&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetReportInGroupAsync&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WorkspaceId&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;reportId&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there a solution or workaround so that I do not need to provide the workspaceId with each request I make to my service? The service principal has been given access to the workspace already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 10:37:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-21T10:37:49Z</dc:date>
    <item>
      <title>Embedded API - get report object without workspaceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedded-API-get-report-object-without-workspaceId/m-p/906393#M22057</link>
      <description>&lt;P&gt;Is it possible for me to retrieve a report object from the API without passing in a workspaceId and while using a service principal to authenticate? When I try to call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Reports&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetReportAsync&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;reportId&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I get a 403 saying the application is not permitted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However using the same service principal I am successfully able to make a call and retrieve the report using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Reports&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetReportInGroupAsync&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WorkspaceId&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;reportId&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there a solution or workaround so that I do not need to provide the workspaceId with each request I make to my service? The service principal has been given access to the workspace already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 10:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedded-API-get-report-object-without-workspaceId/m-p/906393#M22057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-21T10:37:49Z</dc:date>
    </item>
  </channel>
</rss>

