Forum Discussion

ledd_25's avatar
ledd_25
Frequent Visitor
1 year ago
Solved

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 ...
  • v-sdhruv's avatar
    1 year ago

    Hi ledd_25 ,

    Get-PowerBIDataset and GetDatasetsAsAdmin only return datasets that the calling user has access to. If you don’t have at least viewer permissions on a workspace, its datasets will not appear in your query result--even if they exist and are active.So, probably you are missing a permission to access the dataset.

    You can follow the checks provided by Nasif_Azam and this might help you troubleshoot the issue.
    Hope this helps!