Forum Discussion
How to retrieve the users for my org's datasets
- Anonymous3 years ago
Hi IvanTrost ,
You can use the Power BI PowerShell module if you want to avoid the limitation of 200 requests. 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:
Install-Module -Name MicrosoftPowerBIMgmt Connect-PowerBIServiceAccount $workspace = Get-PowerBIWorkspace -Name "YourWorkspaceName" $dataset = Get-PowerBIDataset -WorkspaceId $workspace.Id -Name "YourDatasetName" $users = Get-PowerBIDatasetUser -WorkspaceId $workspace.Id -DatasetId $dataset.IdThis 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. 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.
Power BI Cmdlets reference | Microsoft Learn
Best Regards
Hi IvanTrost ,
You can use the Power BI PowerShell module if you want to avoid the limitation of 200 requests. 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:
Install-Module -Name MicrosoftPowerBIMgmt
Connect-PowerBIServiceAccount
$workspace = Get-PowerBIWorkspace -Name "YourWorkspaceName"
$dataset = Get-PowerBIDataset -WorkspaceId $workspace.Id -Name "YourDatasetName"
$users = Get-PowerBIDatasetUser -WorkspaceId $workspace.Id -DatasetId $dataset.Id
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. 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.
Power BI Cmdlets reference | Microsoft Learn
Best Regards
- dbeavon31 year ago
Memorable Member
Anonymous
The term 'Get-PowerBIDatasetUser' is not recognized as the name of a cmdlet, function, script
file, or operable program.
Where did you find that command? It doesn't exist.