Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Solved! Go to Solution.
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
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())})
Hi, i tried the solution suggested by you and it worked very perfectly. I just would want to tweek some parameters like instead of Email i want Alias. How should i do that? From where i can get more references to make more combinations?
Many Thanks,
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 😞
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"
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
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
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!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
4 | |
3 | |
3 | |
2 |