<?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: How to retrieve the users for my org's datasets in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/4329868#M58687</link>
    <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The term 'Get-PowerBIDatasetUser' is not recognized as the name of a cmdlet, function, script&lt;BR /&gt;file, or operable program.&lt;BR /&gt;&lt;BR /&gt;Where did you find that command?&amp;nbsp; It doesn't exist.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 01:29:18 GMT</pubDate>
    <dc:creator>dbeavon3</dc:creator>
    <dc:date>2024-12-16T01:29:18Z</dc:date>
    <item>
      <title>How to retrieve the users for my org's datasets</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/3383142#M43925</link>
      <description>&lt;P&gt;Hello, I'm trying to use this power bi api endpoint to retrieve the users permissions associated with datasets&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-users-as-admin" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-users-as-admin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however there is an api limit of only 200 requests per hour, my organization has over 1200 datasets. It would take around 6 hours to just do a complete extract of all the user permissions for our datasets. This doesn't feel acceptable as it isn't scalable at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some other way we are missing for extracting the user permissions for datasets? We are also running into this issue with other api endpoints and it is frustrating.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 15:39:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/3383142#M43925</guid>
      <dc:creator>IvanTrost</dc:creator>
      <dc:date>2023-08-16T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the users for my org's datasets</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/3386728#M43965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/603925"&gt;@IvanTrost&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can use the Power BI PowerShell module if you want to avoid the limitation of 200 requests&lt;SPAN&gt;. You can install the module and use the Get-PowerBIWorkspace and Get-PowerBIDatasetUser cmdlets to retrieve the users for your organization's datasets. Here is an example of how to use the cmdlets:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;Install-Module &lt;SPAN class=""&gt;-Name MicrosoftPowerBIMgmt
&lt;SPAN class=""&gt;Connect-PowerBIServiceAccount

&lt;SPAN class=""&gt;$workspace = &lt;SPAN class=""&gt;Get-PowerBIWorkspace &lt;SPAN class=""&gt;-Name &lt;SPAN class=""&gt;"YourWorkspaceName"
&lt;SPAN class=""&gt;$dataset = &lt;SPAN class=""&gt;Get-PowerBIDataset &lt;SPAN class=""&gt;-WorkspaceId &lt;SPAN class=""&gt;$workspace.Id &lt;SPAN class=""&gt;-Name &lt;SPAN class=""&gt;"YourDatasetName"
&lt;SPAN class=""&gt;$users = &lt;SPAN class=""&gt;Get-PowerBIDatasetUser &lt;SPAN class=""&gt;-WorkspaceId &lt;SPAN class=""&gt;$workspace.Id &lt;SPAN class=""&gt;-DatasetId &lt;SPAN class=""&gt;$dataset.Id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will retrieve the users for the specified dataset in the specified workspace. You can also use the cmdlets to retrieve the users for all datasets in a workspace.&amp;nbsp;&lt;SPAN&gt;Note that you'll need to have the Power BI PowerShell cmdlets installed and authenticated with your Power BI account before running this script. You can find more information on how to install and use the cmdlets in the following Power BI documentation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps" target="_blank" rel="noopener"&gt;Power BI Cmdlets reference | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 06:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/3386728#M43965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-18T06:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the users for my org's datasets</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/4329868#M58687</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The term 'Get-PowerBIDatasetUser' is not recognized as the name of a cmdlet, function, script&lt;BR /&gt;file, or operable program.&lt;BR /&gt;&lt;BR /&gt;Where did you find that command?&amp;nbsp; It doesn't exist.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 01:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-users-for-my-org-s-datasets/m-p/4329868#M58687</guid>
      <dc:creator>dbeavon3</dc:creator>
      <dc:date>2024-12-16T01:29:18Z</dc:date>
    </item>
  </channel>
</rss>

