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
Dimitris_Kats
Helper V
Helper V

Identify Inactive Wlrkspaces

Hello everyone,

I hope you're all doing well.

I need your help once again with a task I’m currently working on.

I’m trying to identify inactive workspaces in Power BI, but I’ve encountered some challenges. Unfortunately, I’m unable to use PowerShell to pull the audit logs because I don’t have the necessary administrative rights to run PowerShell.

I’ve managed to pull some data using the Feature Usage and Metrics app, but I would like to verify those results and, if possible, gather additional insights. I believe the REST API could be a good alternative, but I’m currently facing some issues with the token.

Any guidance or suggestions on how to overcome these challenges would be greatly appreciated.

1 ACCEPTED SOLUTION
Poojara_D12
Super User
Super User

Hi @Dimitris_Kats 

To identify inactive Power BI workspaces:

  • Authenticate with REST API:Register an Azure AD app, enable permissions, and get an access token.
  • Use REST API:Retrieve workspace list using Get Groups API.Check dataset activity with Get Dataset Last Refresh API to identify inactivity.
  • Cross-Validate:Use data from Feature Usage and Metrics app to confirm inactivity.
  • Automate:Write a script to automate authentication, data retrieval, and analysis.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

View solution in original post

4 REPLIES 4
v-karpurapud
Community Support
Community Support

Hi @Dimitris_Kats 

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by our super user @Poojara_D12 helps you? or let us know if you need any further assistance here? 

 

 

Your feedback is important to us, Looking forward to your response.

Thanks.

Poojara_D12
Super User
Super User

Hi @Dimitris_Kats 

To identify inactive Power BI workspaces:

  • Authenticate with REST API:Register an Azure AD app, enable permissions, and get an access token.
  • Use REST API:Retrieve workspace list using Get Groups API.Check dataset activity with Get Dataset Last Refresh API to identify inactivity.
  • Cross-Validate:Use data from Feature Usage and Metrics app to confirm inactivity.
  • Automate:Write a script to automate authentication, data retrieval, and analysis.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Hi, thank you so much for the reply. This is very helpful.

Could you please give me more information regarding the script I need to write to automate the authentication? I am new to the automation staff 😅

 

lbendlin
Super User
Super User

Unfortunately, I’m unable to use PowerShell to pull the audit logs because I don’t have the necessary administrative rights to run PowerShell.

Find someone who can do that (ie the tenant admins).  

 

"inactive workspace"  is a very, very loaded term. You want to be very precise in the definition of that to avoid looking for a black cat in a dark room.

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 Fabric 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.