Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ledd_25
New Member

powerbi get datasets api is missing some datasets

I have used the Get-PowerBIDataset and GetDatasetsAsAdmin in getting the datasets and PowerBIActivityEvent  to get the log events. I noticed that there are some datasets that appear in the log event but not in the get powerbi dataset. This is what i used: Get-PowerBIDataset -Scope Organization. I checked which workspace this "odd" dataset came from since the log events contained the workspace id and i obtained the workspaces by using  Get-PowerBIWorkspace -Scope Orgranization -all and i found that the workspace is there. So the dataset is not in the get powerbi dataset but its workspace is present in the get powerbi workspace.   

 

Why are there some datasets that i cant find? 

 

I have tried to loop through every workpsace and getting the dataset from there but i do not have access to every workspace. I believe this may be the culprit.

2 REPLIES 2
Nasif_Azam
Solution Sage
Solution Sage

Hey @ledd_25 ,
The discrepancy you are seeing is likely due to
workspace access limitations

 

Try Recommended Actions:

  1. Use Get-PowerBIDataset -Scope Organization or GetDatasetsAsAdmin only if you’re a Power BI Admin they return the broadest dataset list you're authorized to see.

  2. For datasets that still don’t appear, check:

    • If they’re in classic workspaces (not supported).

    • If sensitivity labels or policies limit visibility.

    • If the dataset was deleted or unpublished after the log entry was captured.

  3. If you truly need a complete inventory of all datasets, you’ll need:

    • Power BI Admin role.

    • To use Service Principal with tenant-wide permissions, and ensure it's approved for the required workspaces.

    • Alternatively, use Graph API or Admin APIs from a privileged account.

 

For Detailed Information:

Get-PowerBIDataset (Microsoft Docs)

GetDatasetsAsAdmin (REST API) – Microsoft Docs

PowerBIActivityEvent Reference – Microsoft Docs

Workspace types in Power BI – Classic vs. New

Admin APIs and Permissions in Power BI

Service Principal Authentication for Admin APIs

 

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

ribisht17
Community Champion
Community Champion

Hi @ledd_25 

 

Have you checked the below post:

 

Solved: Re: Can't access entire organizational datasets us... - Microsoft Fabric Community

 

Regards,

Ritesh

Community Champion

Please mark the answer if helpful so that it can help others

Dance-Sing with Data Projects - YouTube

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.