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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply

all workspace data

HI ALL,

i need a compelete data of following

1-All workspaces names

2-all reportorts related to workspaces 

3-owner of samentic models

4-Who acces those reports in last one year

 

Regards 

 

1 ACCEPTED SOLUTION
nilendraFabric
Super User
Super User

Hello @faheem_Latif_BI 

 

here I am sharing powershell and rest api both for each of your usecase

 

you will need admin access to run some of these 

 


List of All Workspaces

 

Connect-PowerBIServiceAccount
$Workspaces = Get-PowerBIWorkspace -Scope Organization -All
$Workspaces | Select Name

 

GET https://api.powerbi.com/v1.0/myorg/admin/groups


All Reports Related to Workspaces

 

 

foreach ($Workspace in $Workspaces) {
$Reports = Get-PowerBIReport -WorkspaceId $Workspace.Id
$Reports | Select Name, WorkspaceId
}

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports

Owner of Semantic Models

foreach ($Workspace in $Workspaces) {
$Datasets = Get-PowerBIDataset -WorkspaceId $Workspace.Id
$Datasets | Select Name, Owner
}

 

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

Users Who Accessed Reports in the Last Year

 

Get-PowerBIActivityEvent -StartDateTime "2024-02-06T00:00:00" -EndDateTime "2025-02-06T23:59:59"
Filter the logs for report access events.

 

Please accept the answer if this is helpful 

 

View solution in original post

1 REPLY 1
nilendraFabric
Super User
Super User

Hello @faheem_Latif_BI 

 

here I am sharing powershell and rest api both for each of your usecase

 

you will need admin access to run some of these 

 


List of All Workspaces

 

Connect-PowerBIServiceAccount
$Workspaces = Get-PowerBIWorkspace -Scope Organization -All
$Workspaces | Select Name

 

GET https://api.powerbi.com/v1.0/myorg/admin/groups


All Reports Related to Workspaces

 

 

foreach ($Workspace in $Workspaces) {
$Reports = Get-PowerBIReport -WorkspaceId $Workspace.Id
$Reports | Select Name, WorkspaceId
}

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports

Owner of Semantic Models

foreach ($Workspace in $Workspaces) {
$Datasets = Get-PowerBIDataset -WorkspaceId $Workspace.Id
$Datasets | Select Name, Owner
}

 

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

Users Who Accessed Reports in the Last Year

 

Get-PowerBIActivityEvent -StartDateTime "2024-02-06T00:00:00" -EndDateTime "2025-02-06T23:59:59"
Filter the logs for report access events.

 

Please accept the answer if this is helpful 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.