Forum Discussion
po
6 years agoPost 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 ...
nickyvv
6 years agoMost 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
po
6 years agoPost Prodigy
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?