<?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: Accessing a secure REST API with a dynamic URL in Service</title>
    <link>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1579598#M117136</link>
    <description>&lt;P&gt;Sorry I has taken me so long to reply to this. We are a small team doing multiple jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to better understand what I believe are two options you have suggested&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. A&lt;SPAN&gt;pply dynamic RLS in a report with the whole dataset. If I undertsand this correctly this would mean our API would return a reponse with customer data across stores and then we would rely on PowerBI to filter data using RLS. Is that a correct understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Create a "template application" that would allow users to change parts of the api service URL via paramaters? IS that a correct understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming I have understood both your suggested options then neither work for us. Option 1 is exposing data to too wide and audience via a REST APi just so we can have the client (PowerBI) "secure" that access with filtering&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Option 2 doesn't work either because it is relying on users changing the URL with a template application. I don't know much about template applicatons but it seems like a big change when all I want to do is call a REST api and WITHIN the REST api know the AzureAd identity of the report user. Note I am not trying to apply PowerBI's RLS within our API but I do want to get at the calling user's identity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this not possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need the&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 14:01:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-04T14:01:08Z</dc:date>
    <item>
      <title>Accessing a secure REST API with a dynamic URL</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1485167#M113232</link>
      <description>&lt;P&gt;We have an api that looks a bit like this &lt;A href="https://ourapi.com/stores/[STOREID]/customers" target="_blank"&gt;https://ourapi.com/stores/[STOREID]/customers&lt;/A&gt;. We want to secure the api against Azure AD. All our reports users are in our Azure AD. We have a "Role" defined per store and we use that for Row Level security in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not very familiar with PowerBI but it looks like I could add the API as a "Web" DataSource and then break the API url down into parts with the STOREID being a seperate part. It looks like I should be able to populate the STOREID part with a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is it correct to use Web data source and Url parts with parameters?&lt;BR /&gt;2. Assuming it is correct to use parameters with a web data source how do I get the report user's defined store into that paramater?&lt;BR /&gt;3. When the call to the API is made how do we ensure it is an authenticated call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1485167#M113232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a secure REST API with a dynamic URL</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1488890#M113396</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get started, you need to connect to your API from Power BI Desktop to start building your queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Users can get data by inputting parameters through template application in service, but RLS cannot be applied in service.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/service-template-apps-create" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/service-template-apps-create&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another method is to apply dynamic RLS in a report with the whole dataset.&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple" target="_self"&gt;https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 06:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1488890#M113396</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2020-11-12T06:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a secure REST API with a dynamic URL</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1579598#M117136</link>
      <description>&lt;P&gt;Sorry I has taken me so long to reply to this. We are a small team doing multiple jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to better understand what I believe are two options you have suggested&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. A&lt;SPAN&gt;pply dynamic RLS in a report with the whole dataset. If I undertsand this correctly this would mean our API would return a reponse with customer data across stores and then we would rely on PowerBI to filter data using RLS. Is that a correct understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Create a "template application" that would allow users to change parts of the api service URL via paramaters? IS that a correct understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming I have understood both your suggested options then neither work for us. Option 1 is exposing data to too wide and audience via a REST APi just so we can have the client (PowerBI) "secure" that access with filtering&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Option 2 doesn't work either because it is relying on users changing the URL with a template application. I don't know much about template applicatons but it seems like a big change when all I want to do is call a REST api and WITHIN the REST api know the AzureAd identity of the report user. Note I am not trying to apply PowerBI's RLS within our API but I do want to get at the calling user's identity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this not possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need the&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 14:01:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Accessing-a-secure-REST-API-with-a-dynamic-URL/m-p/1579598#M117136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-04T14:01:08Z</dc:date>
    </item>
  </channel>
</rss>

