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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Exporting list of those with access to the Report

Hi, 

 

I'd like to export the list of those that my report has been shared with. The list has gotten rather long and exporting is the most efficient way. Is there a way to do this? I am already at the list of recipients, I just don't see a way to export.

 

Thanks

2 ACCEPTED SOLUTIONS

Open the Manage permissions page of the dataset  in Chrome, and then start a developer mode using F12

 

in the console area type the following command:

 

$('span.emailColumn').each(function() { console.log ($(this).text())})

 

This will give you all the mail addresses 🙂 in a list

 

or.... even cooler:
$('.permissionTable li').each(function() { console.log ( $(this).children('span.nameColumn').text(),",",$(this).children('span.emailColumn').text(),",",$(this).children('span.memberAccessColumn').text())})

 

Check Bart's updated version of the script since the release of the new sharing experience: https://community.powerbi.com/t5/Report-Server/Exporting-list-of-those-with-access-to-the-Report/m-p...

 

 

which will give you a CSV list in the console to be copy/pasted

 

View solution in original post

Anonymous
Not applicable

Hi @AlexanderK79  , with the new "report sharing experience" MS deployed recently, unfortunately your script doesn't work anymore. I modified it slightly and it works again (see below), BUT I only get back the number of rows that is visible on the browser screen. Would you know any way to get around this?

 

Thanks! Bart

 

$('.row').each(function() { console.log (

$(this).find('div.user-name').text(),",",$(this).find('span.col-emailAddress').text(),",",$(this).find('span.col-permissions').text())})

View solution in original post

32 REPLIES 32

no, I'm sorry... you can only retrieve what shows up in the permissions list...

 

have you tried:

 

$('.permissionTable li').each(function() { console.log ( $(this).children('span.nameColumn').text(),",",$(this).children('span.emailColumn').text(),",",$(this).children('span.memberAccessColumn').text())})

This is great!!! thank you! do you have a similar coding for extracting the users assigned to each row-level security role? this would be so helpful to control accesses and manage the security roles. Thank you in advance!

Hi, I have a similar kind of requirment to export list of users assigned in different roles..any update on this

Thanks in advance!

 

 

 

Nope 😞

Anonymous
Not applicable

Thank you @AlexanderK79 , worked perfectly

Anonymous
Not applicable

If you install the ReportingServicesTools PowerShell module from here

 

https://github.com/Microsoft/ReportingServicesTools

 

you can get the data back pretty easily.

 

Import-Module ReportingServicesTools

$CatItemRoles = Get-RsCatalogItemRole -Path "/ThisFolderOrItem" -ReportServerUri "http://yourServerName/ReportServerPBI"

$CatItemRoles | Export-Csv -LiteralPath "C:\CatItemRoles.csv"

 

Anonymous
Not applicable

Hi,

 

Where do you get from the Report Server URI parameter?

 

Thanks!

Cristina

You don't need the  Report Server when you use the trick with the debugging tools

Anonymous
Not applicable

No? What do you need then? I write this on Power Shell: Import-Module ReportingServicesTools; Get-RsCatalogItemRole this is what I'm getting:

Failed to establish proxy connection to http://localhost/reportserver/ : Failed to establish proxy connection to http://localhost/reportserver/ReportService2010.asmx : There was an error
downloading 'http://localhost/reportserver/ReportService2010.asmx'

 

 

The first lines of code are part of this: 

Import-Module ReportingServicesTools
$CatItemRoles = Get-RsCatalogItemRole -Path "/ThisFolderOrItem" -ReportServerUri "http://yourServerName/ReportServerPBI"
$CatItemRoles | Export-Csv -LiteralPath "C:\CatItemRoles.csv"

 

That's why I was asking for the ReportServerUri parameter.

 

Please, help me 🙂 

 

Kind regards, 

Cristina Simion

Sorry, but I don't know... I took a different approach

Anonymous
Not applicable

Could you explain me which aproach did you take?

 

Thank you so much!

@Anonymous He took the console approach which he did explain in his previous message. It works perfectly!!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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