<?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: REST API and deleting content from other users My Workspace in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-and-deleting-content-from-other-users-My-Workspace/m-p/1775899#M28868</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/289400"&gt;@DavidCousinsT&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;It depends on the account you log in to the API. You can &lt;STRONG&gt;only&lt;/STRONG&gt; find or delete the dataset in your &lt;STRONG&gt;My workspace&lt;/STRONG&gt; when you log in with your own account,&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;and you cannot delete the dataset in other people's My workspace. . . In addition, I did not find a way to delete the dataset in other people's My workspace through tenant admin. You can check the document below for the details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;Admin&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 05:18:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-09T05:18:39Z</dc:date>
    <item>
      <title>REST API and deleting content from other users My Workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-and-deleting-content-from-other-users-My-Workspace/m-p/1770806#M28818</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As there is no way to stop people uploading data to Power BI via "My Workspace", we've got a need to audit and actively clear out the personal workspaces of our users regularly. This is in addition to education and other fun governance things, but we're a large org and need to put multiple things in place to satisfy our security peeps. They're a bit aghast that thousands of report consumers with free licenses can just click a button and upload anything they like, and I dont blame them as it is a governance nightmare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've figured out the audit side and we've now got PBI reports running against the REST APIs that list all reports/datasets/etc. that people have uploaded to "My Workspace". The tricky thing now is to delete them, and here I've hit a problem: It looks like the REST API can't actually do anything to a users Personal Workspace (what the service calls My Workspace).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/deletedataset" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/deletedataset&lt;/A&gt; - Gives a 404 as it can't see the dataset (as it's not in My "My workspace" but someone elses "My Workspace")&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/deletedatasetingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/deletedatasetingroup&lt;/A&gt; - Gives 401 no authorization, which is fun because I'm a tenant admin. This also gives a 401 against my own "My Workspace", but works fine against a modern workspace, so it looks like it's an old O365 group vs Modern Workspace issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These have also been tried with a service principal that has been given the ReadWrite.All permissions and the permissions in the Power BI Tenant pages. Nothing works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has &lt;STRONG&gt;anyone&lt;/STRONG&gt; had luck clearing out peoples Personal Workspaces?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 21:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-and-deleting-content-from-other-users-My-Workspace/m-p/1770806#M28818</guid>
      <dc:creator>DavidCousinsT</dc:creator>
      <dc:date>2021-04-06T21:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST API and deleting content from other users My Workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-and-deleting-content-from-other-users-My-Workspace/m-p/1775899#M28868</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/289400"&gt;@DavidCousinsT&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;It depends on the account you log in to the API. You can &lt;STRONG&gt;only&lt;/STRONG&gt; find or delete the dataset in your &lt;STRONG&gt;My workspace&lt;/STRONG&gt; when you log in with your own account,&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;and you cannot delete the dataset in other people's My workspace. . . In addition, I did not find a way to delete the dataset in other people's My workspace through tenant admin. You can check the document below for the details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;Admin&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 05:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-and-deleting-content-from-other-users-My-Workspace/m-p/1775899#M28868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-09T05:18:39Z</dc:date>
    </item>
  </channel>
</rss>

