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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vengadesh_p
Helper I
Helper I

how to export user list of user and Permission details

Hi All,

 

 I want to export workspace  user list & their permission 

1) I tried table capture Extenstion --> its not working in powerbi 
2) Tried power shell --> its not working 

 

Connect-PowerBIServiceAccount

$Workspaces = Get-PowerBIWorkspace -Scope Organization -All 

$Workspaces | 
    ForEach-Object {
        $Workspace = $_.name
        foreach ($User in $_.Users) {
            [PSCustomObject]@{
                Workspace = $Workspace
                User      = $User.UserPrincipalName
            }
        }
    } | Export-CSV "D:\\PowerBIGroupMembers.csv" -NoTypeInformation -Encoding UTF8

 


3) tried following query in consol.. BUT I only get back the number of rows that is visible on the browser screen

 

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

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

 

 
Please help me to export userlist from powerbi service

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vengadesh_p ,

 

Please try this Rest Api.

GET https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/users

You must have administrator privileges (such as Office 365 Global Administrator or Power BI Service Administrator) or be authenticated using the service principal. Delegated permissions are supported.

 

Sample response:

vcgaomsft_0-1657183918916.png

Admin - Groups GetGroupUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @vengadesh_p ,

 

Please try this Rest Api.

GET https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/users

You must have administrator privileges (such as Office 365 Global Administrator or Power BI Service Administrator) or be authenticated using the service principal. Delegated permissions are supported.

 

Sample response:

vcgaomsft_0-1657183918916.png

Admin - Groups GetGroupUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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