Forum Discussion
Searching across all Workspaces (Admin)
Hello,
I have a user asking about access to a report in Power BI service but he's not sure of the owner or workspace. How can I search for the report? I am likely not a workspace user but I am a Power BI admin but not o365 admin
Thanks,
Mike
2 Replies
- edhansCommunity Champion
You could use the REST API for this.
This will get all groups (workspaces) in your org.
Admin - Groups GetGroupsAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Then cycle through those using the following for the report itself.
Reports - Get Reports In Group - REST API (Power BI Power BI REST APIs) | Microsoft LearnIf it is only in workspaces that user asking the question has access to, you could use this shorter list of workspaces based on the user. Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Either way, you'll need a bit of PowerShell knowledge to do the looping, or cheat like I do and create a few dozen concatenated strings using Excel to create the commands then paste that into a script. - AnonymousNot applicable
Hi mgaynor ,
Also try these APIs:
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin .
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-users-as-admin .
Best Regards,
Jay