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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ap360
Frequent Visitor

Export Users of Power Bi App

Good day,

 

Is there a way of exporting users who have access to a Power BI App? I have tried numerous ways and I am not getting anywhere.

 

Thank you.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thanks for the reply from @lbendlin , please allow me to provide another insight:

 

Hi @ap360 ,

 

You can try the following code to get all the users of the created app in the console. Then save it to a file.

document.querySelectorAll("div .ng-star-inserted .user-info")[0].textContent

vkongfanfmsft_0-1713853874807.png

 

Also, you can try solution like below:

Export List of App "Users" - Microsoft Fabric Community

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

ap360
Frequent Visitor

 Make sure when creating the variables, need to ensure that you are using the correct column header's label.

 

var text = '';
$('.row').each(function() {
    var username = $(this).find('.user-name').text();
    var email = $(this).find('span.col-emailAddress').text();
    var audience = $(this).find('span.col-message').text(); 
    text = text + (username + "," + email + "," + audience + "\n");
});
 
// Create a Blob with the CSV data
var blob = new Blob([text], { type: 'text/csv;charset=utf-8' });
 
// Create a download link
var downloadLink = document.createElement('a');
downloadLink.href = window.URL.createObjectURL(blob);
downloadLink.setAttribute('download', 'user_data.csv');
 
// Simulate click on the download link
downloadLink.click();

View solution in original post

9 REPLIES 9
ap360
Frequent Visitor

I figured out a way to Export the users that have access to a Power BI App as a CSV file. I was able to use the Developer's Tool and underneath the Console use a specific code to show the users, their email addresses, and to which reports they have access. 

 

Thank you to everyone for helping out.

ap360
Frequent Visitor

 Make sure when creating the variables, need to ensure that you are using the correct column header's label.

 

var text = '';
$('.row').each(function() {
    var username = $(this).find('.user-name').text();
    var email = $(this).find('span.col-emailAddress').text();
    var audience = $(this).find('span.col-message').text(); 
    text = text + (username + "," + email + "," + audience + "\n");
});
 
// Create a Blob with the CSV data
var blob = new Blob([text], { type: 'text/csv;charset=utf-8' });
 
// Create a download link
var downloadLink = document.createElement('a');
downloadLink.href = window.URL.createObjectURL(blob);
downloadLink.setAttribute('download', 'user_data.csv');
 
// Simulate click on the download link
downloadLink.click();
Anonymous
Not applicable

Hi @ap360 ,

 

A great program indeed, thanks for the feedback!

 

Best Regards,
Adamk Kong

AMeyersen
Resolver III
Resolver III

Hi @ap360 :
In my opinion, there is an automatic way using the Admin API
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin

You need to enable the Admin API in the Admin Portal first. 

I'd highly recommend to enable the API only for a single security group and make your service principal a member of that specific group.

@AMeyersen That solves part of the issue.  It doesn't show the audience assignments though.

Anonymous
Not applicable

Thanks for the reply from @lbendlin , please allow me to provide another insight:

 

Hi @ap360 ,

 

You can try the following code to get all the users of the created app in the console. Then save it to a file.

document.querySelectorAll("div .ng-star-inserted .user-info")[0].textContent

vkongfanfmsft_0-1713853874807.png

 

Also, you can try solution like below:

Export List of App "Users" - Microsoft Fabric Community

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

No, this is a long-standing gap.  Impossible to report on audience members vis API.

 

If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com/?forum=2d80fd4a-16cb-4189-896b-e0dac5e08b41

Thank you for your reply.

 

Is there any method that you would recommend? I have heard using Azure might be beneficial.

For now your only way is to use eyeballs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.