<?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 user list from shared Apps from Powerbi Rest API using Powershell in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876292#M39511</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/464282"&gt;@AmilaGunawardan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin" target="_self"&gt;Admin - Apps GetAppUsersAsAdmin API&lt;/A&gt; r&lt;/SPAN&gt;&lt;SPAN&gt;eturns a list of users that have access to the specified app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Permissions:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.&lt;/LI&gt;
&lt;LI&gt;Delegated permissions are supported.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin" target="_blank"&gt;Admin - Apps GetAppUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 06:40:16 GMT</pubDate>
    <dc:creator>v-jianboli-msft</dc:creator>
    <dc:date>2022-11-01T06:40:16Z</dc:date>
    <item>
      <title>Get user list from shared Apps from Powerbi Rest API using Powershell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2874206#M39488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to get all the users that have access to reports workspaces and Apps.&amp;nbsp;Used the below code to get users that are in the workspace. But this code doesn't return the users that the dashboard shared as an APP. How should I get this information using Power BI REST API. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$Groups = Get-PowerBIWorkspace -All | SORT @{Expression="Type"; Descending=$True}, Name

##Get workspaces that are not deleted
$Groups = $Groups | SELECT Id, Name, Type, State | WHERE State -NE 'Deleted'
$GroupWorkspaces = $Groups | WHERE Type -eq 'Workspace'

##Make a global variable for keeping all the workspace information
$WorkspaceUsers = @()
## Clear variable for release all the session values
clear-variable -name WorkspaceUsers

##Start the looping statement for all workspaces
foreach ($GroupWorkspaceId in $GroupWorkspaces.Id) {
    #Retrieving workspace object from group id
    $WorkspaceObject = Get-PowerBIWorkspace -Id $GroupWorkspaceId
    $pbiURL = "https://api.powerbi.com/v1.0/myorg/groups/$GroupWorkspaceId/users"
#****************
#------------------------------------------------------
# --&amp;gt; API Call for WORKSPACE USERS  
#------------------------------------------------------ 
    ## API call for returning a list of users that have access to the specified workspace.
    $resultJson = Invoke-PowerBIRestMethod –Url $pbiURL –Method GET
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:52:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2874206#M39488</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2022-10-31T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get user list from shared Apps from Powerbi Rest API using Powershell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876292#M39511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/464282"&gt;@AmilaGunawardan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin" target="_self"&gt;Admin - Apps GetAppUsersAsAdmin API&lt;/A&gt; r&lt;/SPAN&gt;&lt;SPAN&gt;eturns a list of users that have access to the specified app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Permissions:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.&lt;/LI&gt;
&lt;LI&gt;Delegated permissions are supported.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin" target="_blank"&gt;Admin - Apps GetAppUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 06:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876292#M39511</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-01T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get user list from shared Apps from Powerbi Rest API using Powershell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876365#M39514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/403972"&gt;@v-jianboli-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the answer. From&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/apps-get-app-users-as-admin" target="_self" rel="nofollow noopener noreferrer"&gt;Admin - Apps GetAppUsersAsAdmin API&lt;/A&gt;&amp;nbsp;does external users can be listed out too? Because my app has been shared to external users.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 07:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876365#M39514</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2022-11-01T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get user list from shared Apps from Powerbi Rest API using Powershell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876475#M39515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/464282"&gt;@AmilaGunawardan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, external users are also listed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 07:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-user-list-from-shared-Apps-from-Powerbi-Rest-API-using/m-p/2876475#M39515</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-01T07:53:27Z</dc:date>
    </item>
  </channel>
</rss>

