<?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: REST API to get role names (RLS)  from power bi service in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3097898#M41431</link>
    <description>&lt;P&gt;Hi, now it`s accesible by using method described here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 11:50:35 GMT</pubDate>
    <dc:creator>volodymyr_zahid</dc:creator>
    <dc:date>2023-02-24T11:50:35Z</dc:date>
    <item>
      <title>REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2135979#M32383</link>
      <description>&lt;P&gt;Hello, I have two questions related to power bi report and dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have looked at the REST API site (&lt;A href="https://docs.microsoft.com/pt-br/rest/api/power-bi/datasets/get-datasets-in-group" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/pt-br/rest/api/power-bi/datasets/get-datasets-in-group&lt;/A&gt;) to look for an endpoint that returns a effective identity related roles that are defined through Power BI desktop development with no luck.&amp;nbsp; Does anyone know what endpoint can I use to retrieve that information?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. what are the differences between EffectiveIdentyRole and EffectiveIdentity? (see the below example Json from the website&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "value": [
    {
      "id": "cfafbeb1-8037-4d0c-896e-a46fb27ff229",
      "name": "SalesMarketing",
      "addRowsAPIEnabled": false,
      "configuredBy": "john@contoso.com",
      "isRefreshable": true,
      "isEffectiveIdentityRequired": false,
      "isEffectiveIdentityRolesRequired": false,
      "isOnPremGatewayRequired": false
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:26:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2135979#M32383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-14T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2138501#M32402</link>
      <description>&lt;P&gt;You can get the RLS roles through DMV queries against the XMLA endpoint.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 20:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2138501#M32402</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-10-16T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2139979#M32424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. There is no Power BI REST API endpoint for this unfortunately. I've tried looking for the same and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;had pointed me in the DMV direction also. To expand on that, you can connect to the XMLA endpoint and run some queries. There are pros and cons.&amp;nbsp;&lt;SPAN&gt;In case you want more info, here is some doco with examples:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/instances/use-dynamic-management-views-dmvs-to-monitor-analysis-services?view=asallproducts-allversions#tools-and-permissions" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/analysis-services/instances/use-dynamic-management-views-dmvs-to-monitor-analysis-services?view=asallproducts-allversions#tools-and-permissions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the DMVs you can get roles, members, and the role filters per table, however only one view can be queried at a time with no joins allowed. I ended up building up data from the following DMVs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SYSTEM.TMSCHEMA_ROLES&lt;/P&gt;&lt;P&gt;$SYSTEM.TMSCHEMA_ROLE_MEMBERSHIPS&lt;/P&gt;&lt;P&gt;$SYSTEM.TMSCHEMA_TABLES&lt;/P&gt;&lt;P&gt;$SYSTEM.TMSCHEMA_TABLE_PERMISSIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a link to my previous post if you're interested (there is a&amp;nbsp;&lt;SPAN&gt;analysis.windows.net&lt;/SPAN&gt; API endpoint you could call but I couldn't make it work):&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Developer/How-to-get-model-not-Dataset-ID-Part-of-getting-RLS-Roles-and/m-p/2096105#M32012" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Developer/How-to-get-model-not-Dataset-ID-Part-of-getting-RLS-Roles-and/m-p/2096105#M32012&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. From the doco (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin#dataset" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin#dataset&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;IsEffectiveIdentityRequired&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Whether the dataset requires an effective identity. This indicates that you must send an effective identity using the GenerateToken API.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IsEffectiveIdentityRolesRequired&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Whether RLS is defined inside the PBIX file. This indicates that you must specify a role.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helped.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 07:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2139979#M32424</guid>
      <dc:creator>JZT</dc:creator>
      <dc:date>2021-10-18T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2145715#M32491</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 12:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/2145715#M32491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-20T12:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3097898#M41431</link>
      <description>&lt;P&gt;Hi, now it`s accesible by using method described here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 11:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3097898#M41431</guid>
      <dc:creator>volodymyr_zahid</dc:creator>
      <dc:date>2023-02-24T11:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3121654#M41652</link>
      <description>&lt;P&gt;Hi, just found. In our server worked: pbi.com...api/v2.0/PowerBIReports({Report ID})/DataModelRoles&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3121654#M41652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-09T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3163531#M42013</link>
      <description>&lt;P&gt;Hi, would you be able to detail what flags you used when calling this Endpoint. I was not able to retrieve the row level security groups this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3163531#M42013</guid>
      <dc:creator>david_king</dc:creator>
      <dc:date>2023-03-30T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3340677#M43525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/226945"&gt;@volodymyr_zahid&lt;/a&gt;&amp;nbsp;could you please detail how you retrieve the information?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 11:30:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3340677#M43525</guid>
      <dc:creator>melanid</dc:creator>
      <dc:date>2023-07-20T11:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3788265#M50940</link>
      <description>&lt;P&gt;PostWorkspaceInfo makes Power BI generate a scan of your workspace, which you can check for using GetScanStatus, then read using GetScanResult. The scan result contains information about row-level security roles &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result#definitions" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result#definitions&lt;/A&gt;, including members of those roles and the RLS filters applied to those roles. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 22:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/3788265#M50940</guid>
      <dc:creator>user10456</dc:creator>
      <dc:date>2024-03-24T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: REST API to get role names (RLS)  from power bi service</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/4643746#M60279</link>
      <description>&lt;P&gt;Did someone aleady found a solution with the new PowerBiClient SDK?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 19:16:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-to-get-role-names-RLS-from-power-bi-service/m-p/4643746#M60279</guid>
      <dc:creator>BartHuls</dc:creator>
      <dc:date>2025-04-08T19:16:52Z</dc:date>
    </item>
  </channel>
</rss>

