Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
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
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 Learn
If 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.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.