<?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: [Python SDK]sharing_list_shared_links for deleted users? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433706#M22931</link>
    <description>&lt;P&gt;Thanks for the reply Greg. Would love to see that as a feature going forward, as links don't seem to disappear when you delete an account in our testing. Not a big issue for my client since they are a small company, but it would be nice to be able to audit those older links for larger enterprises.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 22:29:02 GMT</pubDate>
    <dc:creator>Mandark</dc:creator>
    <dc:date>2020-06-30T22:29:02Z</dc:date>
    <item>
      <title>[Python SDK]sharing_list_shared_links for deleted users?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433662#M22918</link>
      <description>&lt;P&gt;I'm attemping to enumerate all shared links within a business dropbox account as part of an audit. The most effective method I've found so far is using the dropbox.DropboxTeam.as_user().sharing_list_shared_links method to enumerate all links created by a given user. Unfortunately this returns an AuthError('invalid_select_user', None) when attempting to run on deleted accounts. Is there a way to run sharing_list_shared_links with admin credentials and see ALL accounts shared links, or a way to resolve this AuthError? App is scoped using Team Member File Access and works great for users that haven't been deleted, but this does not show links that have been created by accounts that are now deleted. Relevant code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;find_shared_links&lt;/SPAN&gt;(dbxTeam: dropbox.DropboxTeam):&lt;BR /&gt;    all_links = []&lt;BR /&gt;    members = dbxTeam.team_members_list(&lt;SPAN&gt;include_removed&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;for &lt;/SPAN&gt;member &lt;SPAN&gt;in &lt;/SPAN&gt;members.members:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(member)&lt;BR /&gt;        &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;            member_links = dbxTeam.as_user(member.profile.team_member_id).sharing_list_shared_links(&lt;SPAN&gt;None&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;except &lt;/SPAN&gt;AuthError &lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;            &lt;SPAN&gt;print&lt;/SPAN&gt;(e&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'ERROR OCCURS ON DELETED ACCOUNTS HERE'&lt;/SPAN&gt;)&lt;BR /&gt;        all_links.append(member_links)&lt;BR /&gt;    &lt;SPAN&gt;return &lt;/SPAN&gt;all_links&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 19:05:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433662#M22918</guid>
      <dc:creator>Mandark</dc:creator>
      <dc:date>2020-06-30T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK]sharing_list_shared_links for deleted users?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433681#M22921</link>
      <description>&lt;P&gt;No, unfortunately there isn't a way to work around this or perform these calls for deleted team members,&amp;nbsp;but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 20:09:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433681#M22921</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-30T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK]sharing_list_shared_links for deleted users?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433706#M22931</link>
      <description>&lt;P&gt;Thanks for the reply Greg. Would love to see that as a feature going forward, as links don't seem to disappear when you delete an account in our testing. Not a big issue for my client since they are a small company, but it would be nice to be able to audit those older links for larger enterprises.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 22:29:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-sharing-list-shared-links-for-deleted-users/m-p/433706#M22931</guid>
      <dc:creator>Mandark</dc:creator>
      <dc:date>2020-06-30T22:29:02Z</dc:date>
    </item>
  </channel>
</rss>

