Forum Discussion
Get PowerBi Audience users via REST API?
Hi @
Why you don’t see audience info in GetAppUsersAsAdmin
-
-
Use workspace access as a proxy
If your app audiences mirror workspace role assignments, you can queryGetWorkspaceUsersAsAdmin. But this usually won’t be precise, since audiences are finer-grained than workspace roles. -
Maintain your own “audience-to-user” mapping
Many organizations store the intended mapping in Azure AD groups. If each audience = one AAD group, then your app audience definition is just those groups. You can query group membership directly from Microsoft Graph.Manual extraction
Right now, the only source of truth is the Power BI Service UI. If you need this data programmatically, it unfortunately requires manual export (or automation via UI scraping / Selenium, which is brittle and unsupported).To answer directly
Is it possible to get app audience and associated users via API?
❌ Not currently. The Power BI REST API does not return audience-level membership for apps. You only get the union of all users with any audience access.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
-
It does not return which audience those users belong to. That’s why in your results, it looks as if every user can see all app content, even though in the UI they are scoped to audiences.
This isn’t a bug in your call — it’s a documented gap: audience membership is not exposed by the Admin APIs today.
What’s available today
Via the Power BI REST APIs, there is no public endpoint to list app audiences or to enumerate users per audience.
Microsoft’s docs for audiences (e.g. Power BI audiences overview) are end-user focused; no corresponding admin API exists.
WorkaroundsIn the Service UI (Apps → Manage audiences), you can clearly see the mapping of audiences to users/groups.
-