<?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 Fabric API: Update user scopes in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4058616#M3241</link>
    <description>&lt;P&gt;Hi there!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt; The &lt;U&gt;token I generated&lt;/U&gt; was retrieved by logging in with 'Login-PowerBI', followed by "Get-PowerBiAccessToken -asstring" &lt;U&gt;inside of Powershell&lt;/U&gt;. This token was then copied and used inside of postman for the authorization. I didn't use any extra parameters. Since the &lt;U&gt;current usage of a Service Principal is quite limited&lt;/U&gt; for the Fabric API, we're &lt;U&gt;opting to use the personal bearer token&lt;/U&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&amp;nbsp;&lt;/STRONG&gt;At our company we're trying to experiment a bit with the MS Fabric API (&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com&lt;/A&gt;)&lt;/SPAN&gt;. We've been able to use the API to list the workspaces, items, ... basically most standard get calls you could imagine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are &lt;U&gt;able to create workspaces&lt;/U&gt; via my individual token, but I'm unable to create individual items inside of a workspace. This is due to the fact that &lt;U&gt;I don't have any individual item level scopes assigned to me&lt;/U&gt; for now. My current scopes are:&amp;nbsp;"App.Read.All Capacity.Read.All Capacity.ReadWrite.All Content.Create Dashboard.Read.All Dashboard.ReadWrite.All Dataflow.Read.All Dataflow.ReadWrite.All Dataset.Read.All Dataset.ReadWrite.All Gateway.Read.All Gateway.ReadWrite.All Pipeline.Deploy Pipeline.Read.All Pipeline.ReadWrite.All Report.Read.All Report.ReadWrite.All StorageAccount.Read.All StorageAccount.ReadWrite.All Tenant.Read.All Tenant.ReadWrite.All UserState.ReadWrite.All Workspace.Read.All Workspace.ReadWrite.All"&lt;BR /&gt;&lt;BR /&gt;As you can see, it's quite normal that I'm only able to create a Workspace. &lt;U&gt;But I want to be able to assign e.g. "&lt;/U&gt;&lt;SPAN&gt;&lt;U&gt;Notebook.ReadWrite.All" to my user. How do I do this for an individual user?&lt;/U&gt; I'm trying to automate as much as possible using Powershell scripts, but the current scopes are quite limited.&lt;BR /&gt;&lt;BR /&gt;Hopefully this is the right section to ask such things, and thank you in advance for your help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 09:41:15 GMT</pubDate>
    <dc:creator>dver344</dc:creator>
    <dc:date>2024-07-24T09:41:15Z</dc:date>
    <item>
      <title>Fabric API: Update user scopes</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4058616#M3241</link>
      <description>&lt;P&gt;Hi there!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt; The &lt;U&gt;token I generated&lt;/U&gt; was retrieved by logging in with 'Login-PowerBI', followed by "Get-PowerBiAccessToken -asstring" &lt;U&gt;inside of Powershell&lt;/U&gt;. This token was then copied and used inside of postman for the authorization. I didn't use any extra parameters. Since the &lt;U&gt;current usage of a Service Principal is quite limited&lt;/U&gt; for the Fabric API, we're &lt;U&gt;opting to use the personal bearer token&lt;/U&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&amp;nbsp;&lt;/STRONG&gt;At our company we're trying to experiment a bit with the MS Fabric API (&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com&lt;/A&gt;)&lt;/SPAN&gt;. We've been able to use the API to list the workspaces, items, ... basically most standard get calls you could imagine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are &lt;U&gt;able to create workspaces&lt;/U&gt; via my individual token, but I'm unable to create individual items inside of a workspace. This is due to the fact that &lt;U&gt;I don't have any individual item level scopes assigned to me&lt;/U&gt; for now. My current scopes are:&amp;nbsp;"App.Read.All Capacity.Read.All Capacity.ReadWrite.All Content.Create Dashboard.Read.All Dashboard.ReadWrite.All Dataflow.Read.All Dataflow.ReadWrite.All Dataset.Read.All Dataset.ReadWrite.All Gateway.Read.All Gateway.ReadWrite.All Pipeline.Deploy Pipeline.Read.All Pipeline.ReadWrite.All Report.Read.All Report.ReadWrite.All StorageAccount.Read.All StorageAccount.ReadWrite.All Tenant.Read.All Tenant.ReadWrite.All UserState.ReadWrite.All Workspace.Read.All Workspace.ReadWrite.All"&lt;BR /&gt;&lt;BR /&gt;As you can see, it's quite normal that I'm only able to create a Workspace. &lt;U&gt;But I want to be able to assign e.g. "&lt;/U&gt;&lt;SPAN&gt;&lt;U&gt;Notebook.ReadWrite.All" to my user. How do I do this for an individual user?&lt;/U&gt; I'm trying to automate as much as possible using Powershell scripts, but the current scopes are quite limited.&lt;BR /&gt;&lt;BR /&gt;Hopefully this is the right section to ask such things, and thank you in advance for your help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 09:41:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4058616#M3241</guid>
      <dc:creator>dver344</dc:creator>
      <dc:date>2024-07-24T09:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric API: Update user scopes</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4060425#M3257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/776657"&gt;@dver344&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer to the following two documents that can help you understand how to grant permissions and grant application roles:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/microsoftgraph/tutorial-grant-delegated-api-permissions?view=graph-powershell-1.0" target="_blank"&gt;Grant and revoke delegated permissions programmatically in Microsoft Entra ID | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/microsoftgraph/tutorial-grant-app-only-api-permissions?view=graph-powershell-1.0" target="_blank"&gt;Grant application permissions programmatically in Microsoft Entra ID | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main thing you notice is&amp;nbsp;permissions created programmatically are not subject to review or confirmation. They take effect immediately.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyifanwmsft_0-1721885602225.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1138506iFF25745B4206B782/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyifanwmsft_0-1721885602225.png" alt="vyifanwmsft_0-1721885602225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also I suggest you to post your question to the corresponding &lt;A href="https://techcommunity.microsoft.com/t5/powershell/ct-p/WindowsPowerShell" target="_self"&gt;PowerShell forum&lt;/A&gt;, where the engineers will give you more in-depth and professional help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 05:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4060425#M3257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-25T05:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric API: Update user scopes</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4060665#M3260</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;Maybe it's safe to say that this is not the right forum for that question. The things you are refering to, still use the Service Principal to connect with the Microsoft Fabric API. At a first glance, and at time of writing, this doesn't seem to solve my problem. I have created another topic on the suggested forum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://techcommunity.microsoft.com/t5/windows-powershell/fabric-api-update-user-scopes/m-p/4200840#M8316" target="_blank"&gt;https://techcommunity.microsoft.com/t5/windows-powershell/fabric-api-update-user-scopes/m-p/4200840#M8316&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 07:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-API-Update-user-scopes/m-p/4060665#M3260</guid>
      <dc:creator>dver344</dc:creator>
      <dc:date>2024-07-25T07:13:17Z</dc:date>
    </item>
  </channel>
</rss>

