admin, make a user a Power BI admin
Add-AzureADDirectoryRoleMember -ObjectId (Get-AzureADDirectoryRole | ? {$_.DisplayName -eq "Power BI Administrator"}).ObjectID -RefObjectId (Get-AzureADUser -ObjectId "[email protected]").ObjectId
this will ask for ID but not creds if you're already logged in somewhere:
Connect-PowerBIServiceAccount
Get-PowerBIDataset | ft
unfortunately, this lists only the datasets which user who is logged on can access. We probably want something more like:
Get-PowerBIDataset -All -Scope Organization | sort name | ft
need to install this module:
Install-Module -Name MicrosoftPowerBIMgmt
Get-PowerBIWorkspace | ft
unfortunately, this lists only the workspaces which user who is logged on can access. We probably want something more like:
Get-PowerBIWorkspace -All -Scope Organization | sort name | ft