Forum Discussion

JimK's avatar
JimK
Advocate I
3 years ago

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/252b9de8-d915-4788-aaeb-ec8c2395f970/users

4 Replies

    • JimK's avatar
      JimK
      Advocate I

      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's avatar
        JimK
        Advocate I

        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! 🤞

  • JimK's avatar
    JimK
    Advocate I

    Another year gone by...  still no way to check on the roles assigned to a data source using API that I can see.

    (User, User with Resharing, and Owner).  😞