<?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 Give users access to workspaces in Power BI using code in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Give-users-access-to-workspaces-in-Power-BI-using-code/m-p/3301499#M43224</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this topic:&amp;nbsp; &lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-give-access-new-workspaces" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-give-access-new-workspaces&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I wanna to confirm that any ideas to achieve it using code? like powerShell or C# ....&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 03:10:20 GMT</pubDate>
    <dc:creator>simonlxd</dc:creator>
    <dc:date>2023-06-26T03:10:20Z</dc:date>
    <item>
      <title>Give users access to workspaces in Power BI using code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Give-users-access-to-workspaces-in-Power-BI-using-code/m-p/3301499#M43224</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this topic:&amp;nbsp; &lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-give-access-new-workspaces" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-give-access-new-workspaces&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I wanna to confirm that any ideas to achieve it using code? like powerShell or C# ....&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 03:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Give-users-access-to-workspaces-in-Power-BI-using-code/m-p/3301499#M43224</guid>
      <dc:creator>simonlxd</dc:creator>
      <dc:date>2023-06-26T03:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Give users access to workspaces in Power BI using code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Give-users-access-to-workspaces-in-Power-BI-using-code/m-p/3305781#M43276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/577745"&gt;@simonlxd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, you can try to call Power BI Rest API to add users to workspace and give them permissions by PowerShell.&lt;/P&gt;
&lt;P&gt;Rest API :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/groups/add-group-user" target="_blank"&gt;Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps#call-the-power-bi-rest-api" target="_blank"&gt;Power BI Cmdlets reference | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.bing.com/videos/search?q=call+any+PowerBI+REST+API+BY+POWERSHELL&amp;amp;&amp;amp;view=detail&amp;amp;mid=AB9A7ED52CE365283B86AB9A7ED52CE365283B86&amp;amp;&amp;amp;FORM=VRDGAR&amp;amp;ru=%2Fvideos%2Fsearch%3Fq%3Dcall%2Bany%2BPowerBI%2BREST%2BAPI%2BBY%2BPOWERSHELL%26FORM%3DHDRSC6" target="_blank"&gt;Call any Power BI REST API with PowerShell - Bing video&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 08:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Give-users-access-to-workspaces-in-Power-BI-using-code/m-p/3305781#M43276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-28T08:07:15Z</dc:date>
    </item>
  </channel>
</rss>

