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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
smjzahid
Helper V
Helper V

How to retrieve Access Level and Licence type using PowerShell

Hi 

I want to know the level off access each user has and their license type as per below snip. We have created an Office365 security group and provided access to the Power BI reports and dashboards via this O365 groups.

The challenge part is how do I know what level of access each users has for eg are they (Member, Contributor, Viewer).

I need something outputted like as per below table. Is there a powershell cmdlet which can give me this or may be a GUI way of finding from the Power BI Service and seeking what level of access each user has.

Note: The O365 security group has more than 100 plus report consumers

 

UPNLicence TypeAccess
abc@abc.comPro UserContributor
def@def.comFree UserViewer
ghi@ghi.comPro UserAdmin
jkl@jkl.comPro UserMember
4 REPLIES 4
GilbertQ
Super User
Super User

Hi there

You will need to use a combination of PowerShell commands to get this information

For the Access to Groups you can use the following PowerShell command let

https://api.powerbi.com/v1.0/myorg/admin/groups?%24top=5000&%24expand=users%2Cdashboards%2Creports%2...

The above will download all the details you need.

In terms of finding out which licenses users have I am not sure what the PowerShell command let is, but there would be one which would allow you to find this out.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

image.png

It throws the error as shown in below snip.

 

Could you send me the powehsell cmdlet to retrieve a Accessrights column which is either set to (Admin, Contributor, member, Viewer)

 

I appreciate your response.

Hi there

You have to either access it via PowerShell or an application that can use a GET POST.

You can use this link below to see the Power BI REST API, and then click on Try it (At the top of the page) to see the output

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin#get-workspaces-with...)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.