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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
JimK
Frequent Visitor

REST API Gateway datasource user roles

When calling the REST API to get list of gateway data source users, the datasourceAccessRight always shows as "Read" ... even when user has Owner or User with resharing permissions on the data source.

 

Is there any way to query for these data source security roles?

 

sample API call:

GET https://api.powerbi.com/v1.0/myorg/gateways/1f69e798-5852-4fdd-ab01-33bb14b6e934/datasources/252b9de...

3 REPLIES 3
ibarrau
Super User
Super User

Hi. That's ok. If you keep reading the doc until you get here:

https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/get-datasource-users#datasourceuseracces...

You will see that "Reader" is actually the highest permission. You can read or you cannot. Then there is a third permission for embedding but reader means owner/admin in here.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

JimK
Frequent Visitor

Thanks for replying!

But there are more fine-grained options now for Gateway data sources.

Users can be granted one of the following 3 roles in the UI:  User, User with Resharing, and Owner. 

There does not appear to be a way to get this info from the API...because no matter what role a user is assigned, it shows them with a datasourceAccessRight = Reader.

I am really hoping to find a way to get a list of Owners specifically!

It seems like the API has not kept up with the UI.

 

JimK
Frequent Visitor

Almost a year later... and still seeing the same results. 

There does not appear to be a way to get at the permissions users have been assigned in the UI.

Please someone show me that I am wrong! 🤞

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors