<?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 API for getting users of a dashboard without being admin, i.e. owner of the dashboard in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2089891#M31941</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a report in my account of my organisation, and I have used RLS, I need to use an API to get&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- List of users who have access to the dashboard&lt;/P&gt;&lt;P&gt;2-List of users within RLS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can achieve these?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am not sure what myorg is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the owner/developer of this dashboard and our BI platform is managed by another team, so do not have access to the backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link to my dashboard is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/groups/me/reports/someID/ReportSection" target="_blank" rel="noopener"&gt;https://app.powerbi.com/groups/me/reports/someID/ReportSection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click on Try me, &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_self"&gt;MS website&amp;nbsp;&lt;/A&gt;asks for the credentials, and when I enter someID in the parameters I get the 404 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this issue?&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>Wed, 22 Sep 2021 00:10:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-22T00:10:29Z</dc:date>
    <item>
      <title>API for getting users of a dashboard without being admin, i.e. owner of the dashboard</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2089891#M31941</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a report in my account of my organisation, and I have used RLS, I need to use an API to get&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- List of users who have access to the dashboard&lt;/P&gt;&lt;P&gt;2-List of users within RLS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can achieve these?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am not sure what myorg is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the owner/developer of this dashboard and our BI platform is managed by another team, so do not have access to the backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link to my dashboard is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/groups/me/reports/someID/ReportSection" target="_blank" rel="noopener"&gt;https://app.powerbi.com/groups/me/reports/someID/ReportSection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click on Try me, &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_self"&gt;MS website&amp;nbsp;&lt;/A&gt;asks for the credentials, and when I enter someID in the parameters I get the 404 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this issue?&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>Wed, 22 Sep 2021 00:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2089891#M31941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-22T00:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: API for getting users of a dashboard without being admin, i.e. owner of the dashboard</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2096223#M32016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you want to use the Rest API: &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_self"&gt;&lt;STRONG&gt;Admin - Dashboards GetDashboardUsersAsAdmin&lt;/STRONG&gt;&lt;/A&gt;, &lt;STRONG&gt;the prerequisite&lt;/STRONG&gt; is that you &lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;must&lt;/STRONG&gt; &lt;STRONG&gt;have&lt;/STRONG&gt; &lt;/FONT&gt;&lt;EM&gt;&lt;STRONG&gt;administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator)&lt;/STRONG&gt; &lt;/EM&gt;to call this API or authenticate via service principal&lt;/SPAN&gt;. The 404 error (xx not found) is probably because you did not enter the correct dashboard id information. Please follow the steps below to get the correct dashboard id.&lt;BR /&gt;1. Sign in &lt;A href="https://app.powerbi.com/" target="_self"&gt;&lt;STRONG&gt;Power BI Service&lt;/STRONG&gt;&lt;/A&gt;, click the dashboard you want to get the user list&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Get the codes circled in red circle after the link &lt;STRONG&gt;dashboards/&lt;/STRONG&gt; in below screenshot&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Copy and paste it in the parameters&amp;nbsp;&lt;SPAN style="font-weight: bold; font-family: inherit;"&gt;dashboardId*&amp;nbsp;&lt;/SPAN&gt;textbox just as the one in below screenshot&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Finally, it will return the user list who can access that dashboard...&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 07:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2096223#M32016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-24T07:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: API for getting users of a dashboard without being admin, i.e. owner of the dashboard</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2097889#M32035</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the time and your answer. I think I am using an exact approach to get the dashboard ID as shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mine has a "ReportSection" after the ID, while your does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I guess that error (404) is indirectly related to the permission (I do not think I have been granted permission to use this API) rather than being related to the content. This 404 error is commonly known for&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;A 404 error message is a Hypertext Transfer Protocol (HTTP) status code&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;indicating the server could not find the requested websit".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my only explanation for "not receiving an error about the permission but instead receiving an error about the contnent " is that the Power BI server uses this 404 for the lack of permission as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this make sense to you or do you still think I am doing something wrong?&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>Sat, 25 Sep 2021 01:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2097889#M32035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-25T01:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: API for getting users of a dashboard without being admin, i.e. owner of the dashboard</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2102680#M32104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The URI Parameters &lt;STRONG&gt;dashboardId&lt;/STRONG&gt; of &lt;STRONG&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin" target="_self"&gt;this Rest API&lt;/A&gt;&lt;/STRONG&gt; request is a specific dashboard id of a workspace you are looking for, not a report id just as shown in below screenshot. And what you are getting is actually the report id (&lt;EM&gt;&lt;STRONG&gt;"ReportSection" after the ID&lt;/STRONG&gt;&lt;/EM&gt;)... You can follow the steps in my previous post to get the dashboard id...&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 09:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2102680#M32104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-28T09:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: API for getting users of a dashboard without being admin, i.e. owner of the dashboard</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2103688#M32117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for this. You are correct, I was using the Report ID not the dashbaord ID as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;.Based on my org's security settings I cannot publish a report as the dashboard. So, I was using the wrong API. I should have used this one&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-report-users-as-admin#code-try-0" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-report-users-as-admin#code-try-0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after using this one that asks for the report ID, I am still getting a 404 error, so I guess I do not have admin rights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 17:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-for-getting-users-of-a-dashboard-without-being-admin-i-e/m-p/2103688#M32117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-28T17:53:40Z</dc:date>
    </item>
  </channel>
</rss>

