Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have created a synapse workspace with a lakehouse and notebooks that i use to retrieve Power BI information from my tenant.
This include apps, workspaces, datasets, activity etc. hovewer, i want to retrieve dataset users and app users aswell.
To access these APIs i have created an App in my Azure portal which i have added in AD group and provided access to the following settings in Admin Portal,
1. Allow Service principals to use Power BI APIs
2. Allow Service principals to use read-only admin APIs
3. Enhance admin APIs responses with detailed metadata
4. Enhance admin APIs responses with dax and mashup expressions
for this i tought i could use the following APIs
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-users-as-admin
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin
What i do is that i first retrieve dataset IDs (this works) and then loop over these IDs with this Python code inside my notebook.
#Get a list of datasets
Tenant.Read.All or Tenant.ReadWrite.All
Relevant only when authenticating via a standard delegated admin access token. Must not be present when authentication via a service principal is used.
i have no idea what it means with standard delegated admin access token so if anyone could help me out and get this Python code running against this API i would be very glad!
Solved! Go to Solution.
Edit: I solved this, it was a human error, when using chatGPT to clean up my code it was helpfull enough to change my API from Admin/ to regular. changing it back to admin API URL for Power BI solved the problem:)
Edit: I solved this, it was a human error, when using chatGPT to clean up my code it was helpfull enough to change my API from Admin/ to regular. changing it back to admin API URL for Power BI solved the problem:)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |