Comments (3)
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.
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.
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)
- https://api.powerbi.com/v1.0/myorg 404 Not Found HOT 1
- Upsteam Dataflows HOT 3
- Adding of artifacts to connector HOT 3
- Help Wanted HOT 1
- Get Dataset Users doesn't work HOT 2
- Add support for [GetDashboardSubscriptionsAsAdmin] HOT 1
- InvalidConnectionCredentials when using on Gateway HOT 4
- Tables return errors when accessed as admin user HOT 1
- How does the connector api works? HOT 1
- Gateways API issue HOT 11
- GetData function does not work HOT 1
- Issue with Gateways connection HOT 1
- Unable to signin HOT 2
- Conditional Access Policy Blocks API use HOT 1
- PBI refresh failure constantly with credential error HOT 5
- Dataset Datasources fails for AzureBlobs source - missing "account" field
- Dataset Datasources refresh not working HOT 2
- Adding "workspaceId" to Admin - Apps GetAppsAsAdmin HOT 1
- Intermittent Error: The underlying connection was closed: An unexpected error occurred on a receive. HOT 1
- Execute Query Function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerbirestapi.