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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
darentengmfs
Post Prodigy
Post Prodigy

PowerShell to get user's list of reports

Hi

 

Is there a way to use PowerShell to get a list of reports/datasets a specific user have access to?

 

Thanks!

Daren

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Probably, via the REST API. The reason I say probably is it will show users and groups with access, but will not show the users within the groups, so if a user has access because they are in a specific group, you'd need to know they were in that group, or use PowerShell to enumerate group users.

 

Datasets - Get Dataset Users - REST API (Power BI Power BI REST APIs) | Microsoft Docs is per report.

Datasets - Get Dataset Users In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs works with workspaces too.

 

I don't think there is a command to work with the entire tenant, so you'd need to loop through workspaces.


To be clear, this is answering the question in the opposite way you asked. You cannot run a powershell against a user id to see what they have access to. You'd need to run it against reports or workspaces and see what users have access to those.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Probably, via the REST API. The reason I say probably is it will show users and groups with access, but will not show the users within the groups, so if a user has access because they are in a specific group, you'd need to know they were in that group, or use PowerShell to enumerate group users.

 

Datasets - Get Dataset Users - REST API (Power BI Power BI REST APIs) | Microsoft Docs is per report.

Datasets - Get Dataset Users In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs works with workspaces too.

 

I don't think there is a command to work with the entire tenant, so you'd need to loop through workspaces.


To be clear, this is answering the question in the opposite way you asked. You cannot run a powershell against a user id to see what they have access to. You'd need to run it against reports or workspaces and see what users have access to those.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.