<?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: PowerShell - Get Power BI Service Account in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3887431#M52139</link>
    <description>&lt;P&gt;Output:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class=""&gt;Microsoft.PowerBI.Common.Abstractions.Interfaces.IPowerBIProfile&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign the output to a variable and then grab the UserName from it.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 01:01:24 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-05-03T01:01:24Z</dc:date>
    <item>
      <title>PowerShell - Get Power BI Service Account</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3887324#M52137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using PowerShell to connect to the Power BI API I use "&lt;SPAN&gt;Connect-PowerBIServiceAccount", after authenticating, I can see the "UserName" is returned. How can I assign this to a variable in my code for further use, or is there another way to return the authenticated service account? I want to remove the account being used to create workspaces via the API after I have assigned an AD group to the workspace for admin access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 22:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3887324#M52137</guid>
      <dc:creator>powerbi_jenhen</dc:creator>
      <dc:date>2024-05-02T22:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell - Get Power BI Service Account</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3887431#M52139</link>
      <description>&lt;P&gt;Output:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class=""&gt;Microsoft.PowerBI.Common.Abstractions.Interfaces.IPowerBIProfile&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign the output to a variable and then grab the UserName from it.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 01:01:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3887431#M52139</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-03T01:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell - Get Power BI Service Account</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3888750#M52150</link>
      <description>&lt;P&gt;Is this a .Net namespace? How would I use this in Powershell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 10:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3888750#M52150</guid>
      <dc:creator>powerbi_jenhen</dc:creator>
      <dc:date>2024-05-03T10:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell - Get Power BI Service Account</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3888794#M52151</link>
      <description>&lt;P&gt;You got me moving in the right direction. This worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$pbiServiceAccount&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Connect-PowerBIServiceAccount&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;WarningAction:SilentlyContinue&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$userName&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;$pbiServiceAccount&lt;/SPAN&gt;&lt;SPAN&gt;.UserName&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Write-Host&lt;/SPAN&gt; &lt;SPAN&gt;"Username: &lt;/SPAN&gt;&lt;SPAN&gt;$userName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 May 2024 10:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-Power-BI-Service-Account/m-p/3888794#M52151</guid>
      <dc:creator>powerbi_jenhen</dc:creator>
      <dc:date>2024-05-03T10:47:20Z</dc:date>
    </item>
  </channel>
</rss>

