Giter VIP home page Giter VIP logo

Comments (3)

migueesc123 avatar migueesc123 commented on May 22, 2024

Hey!
Ideally this is something a custom connector for the admin of the tenant, but I believe that anyone wth the right access should be able to use the API. It's more related to how you set up the Web application - the whole role and permissions and how the API actually works.

I haven't tried this custom connector without any admin access, so if you end up trying it do let us know how it goes!

Also, here's the official documentation for the Power BI REST API:
https://docs.microsoft.com/en-us/rest/api/power-bi/

Best,

from powerbirestapi.

klinejordan avatar klinejordan commented on May 22, 2024

You can just use the GETData function to call the Admin APIs - there are no specific tables built in the custom connector for the admin end points (although I could probably add some easily).

The GetGroupsAsAdmin is probably the best starting point, since it supports $expand operations for users, dashboards, reports, dataflows and datasets. No data sources unfortunately. To make that API call just invoke the GETData function with "admin/groups?$top=5000" as the input (5000 is the maximum records returned by the API, but you can use skip to loop through all of them).

Also keep in mind you do have to have the Power BI Service Administrator role in Azure AD in order to call the admin APIs - you cannot use a service principal or a user with non-elevated permissions.

from powerbirestapi.

klinejordan avatar klinejordan commented on May 22, 2024

I just pushed a new version that includes explicit queries against the Admin APIs.

I included data source level details because it works, but be advised that this does not scale with large tenants as the API has to loop through every datasource individually instead of using $expand.

from powerbirestapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.