cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pborah
Helper V
Helper V

Can't access entire organizational datasets using powershell

I installed the PowerBI cmdlets in powershell and connected my account. I'm a workspace admin and I'm able to see/access all datasets in all the workspaces in the online portal. However in Powershell using the following command -

Get-PowerBIDataset -Scope Organization

gives me the following error -

Get-PowerBIDataset : Operation returned an invalid status code 'Unauthorized'
At line:1 char:1
+ Get-PowerBIDataset -Scope Organization
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...tPowerBIDataset:GetPowerBIDataset) [Get-PowerBIDataset], HttpOperationException
    + FullyQualifiedErrorId : Operation returned an invalid status code 'Unauthorized',Microsoft.PowerBI.Commands.Data.GetPowerBIDataset

 

Any clarity on the issue is highly appreciated. Thank you.

 

1 ACCEPTED SOLUTION
pborah
Helper V
Helper V

Answering my own question here. Official documentations say that I need to be an "administrator" to be able to do this but it doesn't say what kind of administrator. Turns out you need to be a PowerBI Admin or an O365 admin to be able to do this,

View solution in original post

1 REPLY 1
pborah
Helper V
Helper V

Answering my own question here. Official documentations say that I need to be an "administrator" to be able to do this but it doesn't say what kind of administrator. Turns out you need to be a PowerBI Admin or an O365 admin to be able to do this,

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!