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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
po
Post Prodigy
Post Prodigy

undefined

Hi,

 

Have some powershell code to get inventory of workspaces and reports.

 

However, looking to see if could get last accessed, viewed and created added to this.

 

Looking to view acros sthe tenant.

 

Anyone have powershell code which gives an inventory of workspaces, reports and when report last accessed, viwed, created?

 

Thanks

4 REPLIES 4
nickyvv
Most Valuable Professional
Most Valuable Professional

Hi @po,

 

for the types of properties you mention you'll need to query the Power BI Activity Log. You can also use PowerShell to get information from there.

 

Please do be aware of the Activity log requirements:

  • You must either be a global admin or a Power BI service admin.
  • You have installed the Power BI Management cmdlets locally or use the Power BI Management cmdlets in Azure Cloud Shell.

For example, you can use the following activities:

  • CreateReport 
  • DeleteReport
  • EditReport
  • ExportReport
  • DownloadReport
  • PrintReport
  • ShareReport
  • ViewReport


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


Thanks for link - do you/anyone have example of powershell which looks to see who has viwed which report?

 

Guess many people have alreday written such powershell commmands - new to powershell.

 

Also just looks like has activity logs for last 30 days?

nickyvv
Most Valuable Professional
Most Valuable Professional

Correct, the Activity logs are (for now) only for 30 days, it might be expanded to 90 days later when it goes out of preview.
Instead, you could also query the O365 Audit log directly, but for that you need to be a Global Admin I think. The Activity log only requires the Power BI Admin role.
If you look at the link of the Activity Log in my previous post, there are also examples in the docs:
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-auditing#operations-available-in-the-a...


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


Thanks for update.

 

Have read some artciles about just getting one day worth of actvivit ydata.

 

Do you know of any plans to make a user interface available to view activity across the entire tenant in similar way that we can view activity across a workspace with built in usgae metrics report?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors