<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get PowerBi Audience users via REST API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4788703#M62540</link>
    <description>&lt;P&gt;one thing to note there is a new permission group that MS have includes Workspaceusers in audiances by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone who has access to the Workspace has access to the apps in the audiance group .&amp;nbsp;&lt;/P&gt;&lt;P&gt;my solution cannot see this user group , i guess its because its propagated from the workspaces.&amp;nbsp; but having good governance will allow you to include these users.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 10:00:13 GMT</pubDate>
    <dc:creator>anwarbham</dc:creator>
    <dc:date>2025-08-06T10:00:13Z</dc:date>
    <item>
      <title>Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/3723616#M49759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a report showing all applications and users having access to these applications. Some of the applications have multiple audiences with different users assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When querying PBI Service with&amp;nbsp;GetAppUsersAsAdmin API call I am receiving a list of users but there is no audience name. In result, it seems like these users have access to all reports in the application which is obviously not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible to somehow get app audience and associated users? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 10:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/3723616#M49759</guid>
      <dc:creator>Zawadowski</dc:creator>
      <dc:date>2024-02-26T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/3724848#M49797</link>
      <description>&lt;P&gt;Long standing gap. pretty much since the day audiences came out.&amp;nbsp; We have complained loudly to Microsoft about it and all we got back is crickets.&amp;nbsp; Make some noise on your side, raise a ticket, demand a bug fix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/3724848#M49797</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-26T18:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4100245#M54772</link>
      <description>&lt;P&gt;There is an open idea out there that is being investigated.&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Issues/GetAppUsersAsAdmin-API-Audience-Support/idi-p/2833610" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/GetAppUsersAsAdmin-API-Audience-Support/idi-p/2833610&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 12:59:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4100245#M54772</guid>
      <dc:creator>olszykn</dc:creator>
      <dc:date>2024-08-14T12:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4764023#M62227</link>
      <description>&lt;P&gt;Hi there is an undocumented method but i cannot seem to get it working&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you make a get call to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wabi-north-europe-l-primary-redirect.analysis.windows.net/metadata/appmodel/apps/Woprkspace" target="_blank"&gt;https://wabi-north-europe-l-primary-redirect.analysis.windows.net/metadata/appmodel/apps/WoprkspaceORGroupID&lt;/A&gt;?requestDataType=7&amp;amp;access-control-allow-credentials=true&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but you need a bearer token and our bearer token that can access other PBI api does not work.&lt;/P&gt;&lt;P&gt;must be a permission issue .&lt;/P&gt;&lt;P&gt;but if you copy a bearer token from when you log in to power bi via f12 developer mode it does work.&lt;/P&gt;&lt;P&gt;i get a json response with the app and audiance name and members .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if anyone can help me how to get the correct bearer token i would appreciate this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anwarbham_2-1752598033882.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1283325i1CFD44BDE91B3499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anwarbham_2-1752598033882.png" alt="anwarbham_2-1752598033882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is an extract&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anwarbham_1-1752597911533.png" style="width: 814px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1283322i1C68E447744749FC/image-dimensions/814x357?v=v2" width="814" height="357" role="button" title="anwarbham_1-1752597911533.png" alt="anwarbham_1-1752597911533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 16:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4764023#M62227</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-07-15T16:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4764904#M62233</link>
      <description>&lt;P&gt;sure but its been 3 years and no update from ms if this will be a available&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 08:35:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4764904#M62233</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-07-16T08:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4778546#M62379</link>
      <description>&lt;P&gt;Well i managed to extract the audiance data via the API you have to set a timer after each rest call for 2.5 seconds to avoid the "Too Many requests error"&lt;/P&gt;&lt;P&gt;Code Below if anyone finds it usefull.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def GET_GROUPS(WorkspaceId):    
    Token = 'Bearer TOKEN HERE'

    url = 'https://wabi-north-europe-l-primary-redirect.analysis.windows.net/metadata/appmodel/apps/'+WorkspaceId+'?requestDataType=7&amp;amp;access-control-allow-credentials=true';
    headers = {"Accept":"application/json","Authorization":Token}

    response = requests.get(url, headers = headers)
    if response.status_code == 200:
        return response.json()
    else:
        print("Error: ", response.status_code)
    return response.json()&lt;/LI-CODE&gt;&lt;P&gt;then you have to ge the Audience data.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def Clean_Result(df,Group):
    #Create empty dataframe
    df_empty = pd.DataFrame(columns=['Group','providerId','AppId','AppDisplayName','AudienceName','reportId','Users','AdName'],dtype='string')

    #fill the empty dataframe with the values from the json file

    try:
        for i in range(len(df['appViewDetails'][0])):
            for j in range(len(df['appViewDetails'][0][i]['reportIds'])):
                for k in range(len(df['appViewDetails'][0][i]['contentProviderPermissions']['adUserMetadataList'])):
                    new_row = pd.DataFrame({"Group": [Group], 
                            "providerId": [df['providerId'][0]]
                            ,"AppId": [df['providerKey'][0]]
                            ,"AppDisplayName": [df['displayText'][0]]
                            ,"AudienceName":[df['appViewDetails'][0][i]['viewName']]
                            ,"reportId":[df['appViewDetails'][0][i]['reportIds'][j]]
                            ,"Users":[df['appViewDetails'][0][i]['contentProviderPermissions']['adUserMetadataList'][k]['userPrincipalName']]
                            ,"AdName":[df['appViewDetails'][0][i]['contentProviderPermissions']['adUserMetadataList'][k]['displayName']]})
                    df_empty = df_empty.append(new_row)

        dfs['vw_Audience_tmp'] = pandas_to_spark(df_empty)
        return dfs['vw_Audience_tmp'] 
       
    except:
        print("No data for this group")
        return dfs['vw_Audience_tmp']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stick this in a loop&amp;nbsp;&lt;/P&gt;&lt;P&gt;with a timer&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for each in dfs['vw_Groups'].collect(): 
    time.sleep(2.5)       
    df = pd.json_normalize(GET_GROUPS(each['Id']))
    df2 = Clean_Result(df,each['Id'])

    if not df2.isEmpty():
        df3 =  df3.union(df2)

dfs['vw_Audience2'] = df3

dfs['vw_Audience2'].createOrReplaceTempView('vw_Audience2')&lt;/LI-CODE&gt;&lt;P&gt;its not perfect but it does the job untill MS decide to get an official API&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4778546#M62379</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-07-28T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4783941#M62452</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/904088"&gt;@anwarbham&lt;/a&gt;&amp;nbsp;, Thanks for sharing the unique information. Please let me know how to get the Report/Dashboard GUID and the visibilty for the Target Audiance group.&lt;BR /&gt;The report id in the output of ['appViewDetails'] is '&lt;SPAN&gt;2202319' where as the actual report GUID is different. How to map and get the actual report id. I am trying to collect ist of Target Audiance Group, associated user/AD Group, List of visible reports.&lt;BR /&gt;Appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 07:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4783941#M62452</guid>
      <dc:creator>Sabarivel</dc:creator>
      <dc:date>2025-08-01T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4783992#M62455</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;providerKey is the App ID ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;if you use the power bi api&amp;nbsp;&lt;SPAN&gt;reportsasadmin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-reports-as-admin" target="_blank"&gt;Admin - Reports GetReportsAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;you have the reports linked to each app&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;in my case it was&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="c"&gt;with reports as
(
select
distinct
appId,
id,
name
from
reportsasadmin
)
select distinct
audience.AudienceName,
audience.providerId,
audience.AppId,
audience.AppDisplayName,
audience.Users,
audience.AdName,
audience.`Group`,
reports.id as ReportId,
reports.name as ReportName
 
from audience
left join reports on reports.appid = audience.AppId
 
order by AudienceName, Users asc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4783992#M62455</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-08-01T08:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4788703#M62540</link>
      <description>&lt;P&gt;one thing to note there is a new permission group that MS have includes Workspaceusers in audiances by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone who has access to the Workspace has access to the apps in the audiance group .&amp;nbsp;&lt;/P&gt;&lt;P&gt;my solution cannot see this user group , i guess its because its propagated from the workspaces.&amp;nbsp; but having good governance will allow you to include these users.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 10:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4788703#M62540</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-08-06T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4788872#M62543</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/904088"&gt;@anwarbham&lt;/a&gt;&amp;nbsp;thanks for the explaination. Here I am trying to get the list of reports the traget audiance group has access to. The reportIds[] array has list of visibile reports for each target audiance group. This array dosent have actual report GUID.Instead it has &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;2202319'.&lt;/SPAN&gt;So how can I get the reports for each target audiance group?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sabarivel_0-1754480468707.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1289056iD737ABADD4BB62FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sabarivel_0-1754480468707.png" alt="Sabarivel_0-1754480468707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 11:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4788872#M62543</guid>
      <dc:creator>Sabarivel</dc:creator>
      <dc:date>2025-08-06T11:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4789236#M62559</link>
      <description>&lt;P&gt;can you extract the&amp;nbsp;&lt;SPAN&gt;providerKey&amp;nbsp;that is the app ID, Power bi has an api that lists the reports linked to an APP, Or check the "navigationJson" attribute it has ObjectId , this is the Report ID&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 18:04:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4789236#M62559</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-08-06T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4791202#M62594</link>
      <description>&lt;P&gt;With app ID we can get the associated reports through API call. Also in the navigationJson, we have Report IDs(Object ID) as you mentioned. The challenge here is only in the appViewDetails we have the visilbe report IDs ('&lt;SPAN&gt;2202319')&lt;/SPAN&gt;&amp;nbsp;for the Target Audiance. With this string '&amp;nbsp;&lt;SPAN&gt;2202319' I need to get the actual report GUID.&lt;BR /&gt;Please suggest.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 11:55:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4791202#M62594</guid>
      <dc:creator>Sabarivel</dc:creator>
      <dc:date>2025-08-08T11:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4791361#M62600</link>
      <description>&lt;P&gt;you need to get the provider id from your first Get call&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anwarbham_0-1754660033587.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1289666i1696CF660505F127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anwarbham_0-1754660033587.png" alt="anwarbham_0-1754660033587.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and make another get call to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wabi-north-europe-l-primary-redirect.analysis.windows.net/metadata/appmodel/contentprovidermetadata?id=111819" target="_blank"&gt;https://wabi-north-europe-l-primary-redirect.analysis.windows.net/metadata/appmodel/contentprovidermetadata?id=111819&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the response contains the short report id and the long report id&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anwarbham_1-1754660350883.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1289671iB02E407714FE3F09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anwarbham_1-1754660350883.png" alt="anwarbham_1-1754660350883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 13:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4791361#M62600</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2025-08-08T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4803548#M62788</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/904088"&gt;@anwarbham&lt;/a&gt;&amp;nbsp;Thanks for the suggestion. I will implement this API call and let you know if any challenges.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:41:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4803548#M62788</guid>
      <dc:creator>Sabarivel</dc:creator>
      <dc:date>2025-08-21T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get PowerBi Audience users via REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4805526#M62815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@&lt;/P&gt;
&lt;H2 data-start="90" data-end="148"&gt;Why you don’t see audience info in &lt;CODE data-start="128" data-end="148"&gt;GetAppUsersAsAdmin&lt;/CODE&gt;&lt;/H2&gt;
&lt;UL data-start="150" data-end="582"&gt;
&lt;LI data-start="150" data-end="384"&gt;
&lt;P data-start="152" data-end="384"&gt;The &lt;A target="_new" rel="noopener" data-start="156" data-end="265"&gt;&lt;CODE data-start="157" data-end="177"&gt;GetAppUsersAsAdmin endpoint only returns the &lt;EM data-start="292" data-end="322"&gt;flattened list of principals (users, groups, service principals) who can access the app.&lt;/EM&gt;&lt;/CODE&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="385" data-end="582"&gt;
&lt;OL data-start="1233" data-end="1995"&gt;
&lt;LI data-start="1233" data-end="1466"&gt;
&lt;P data-start="1236" data-end="1466"&gt;&lt;STRONG data-start="1236" data-end="1271"&gt;Use workspace access as a proxy&lt;BR data-start="1271" data-end="1274" /&gt;If your app audiences mirror workspace role assignments, you can query &lt;CODE data-start="1348" data-end="1374"&gt;GetWorkspaceUsersAsAdmin. But this usually won’t be precise, since audiences are finer-grained than workspace roles.&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1468" data-end="1742"&gt;
&lt;P data-start="1471" data-end="1742"&gt;&lt;STRONG data-start="1471" data-end="1519"&gt;Maintain your own “audience-to-user” mapping&lt;BR data-start="1519" data-end="1522" /&gt;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.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="1747" data-end="1995"&gt;&lt;STRONG data-start="1747" data-end="1768"&gt;Manual extraction&lt;BR data-start="1768" data-end="1771" /&gt;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).&lt;/STRONG&gt;&lt;/P&gt;
&lt;H2 data-start="2002" data-end="2023"&gt;To answer directly&lt;/H2&gt;
&lt;BLOCKQUOTE data-start="2025" data-end="2095"&gt;
&lt;P data-start="2027" data-end="2095"&gt;&lt;STRONG data-start="2027" data-end="2095"&gt;Is it possible to get app audience and associated users via API?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="2097" data-end="2257"&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; &lt;STRONG data-start="2099" data-end="2117"&gt;Not currently. The Power BI REST API does not return audience-level membership for apps. You only get the &lt;EM data-start="2209" data-end="2216"&gt;union of all users with any audience access.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI data-start="1233" data-end="1466"&gt;
&lt;P data-start="1236" data-end="1466"&gt;&lt;STRONG data-start="1236" data-end="1271"&gt;&lt;CODE data-start="1348" data-end="1374"&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="387" data-end="582"&gt;It does &lt;STRONG data-start="395" data-end="402"&gt;not return &lt;EM data-start="410" data-end="426"&gt;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.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="584" data-end="700"&gt;This isn’t a bug in your call — it’s a documented gap: audience membership is not exposed by the Admin APIs today.&lt;/P&gt;
&lt;H2 data-start="707" data-end="732"&gt;What’s available today&lt;/H2&gt;
&lt;P data-start="851" data-end="970"&gt;Via the &lt;STRONG data-start="859" data-end="881"&gt;Power BI REST APIs, there is no public endpoint to list app audiences or to enumerate users per audience.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="972" data-end="1210"&gt;Microsoft’s docs for audiences (e.g. &lt;A target="_new" rel="noopener" data-start="1009" data-end="1150"&gt;Power BI audiences overview) are end-user focused; no corresponding admin API exists.&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;H2 data-start="1217" data-end="1231"&gt;Workarounds&lt;SPAN&gt;In the &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 16px;" data-start="743" data-end="757"&gt;Service UI (Apps → Manage audiences), you can clearly see the mapping of audiences to users/groups.&lt;/STRONG&gt;&lt;/H2&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 data-start="90" data-end="148"&gt;&lt;CODE data-start="128" data-end="148"&gt;&lt;/CODE&gt;&lt;/H2&gt;</description>
      <pubDate>Sat, 23 Aug 2025 07:16:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBi-Audience-users-via-REST-API/m-p/4805526#M62815</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2025-08-23T07:16:04Z</dc:date>
    </item>
  </channel>
</rss>

