cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Python SDK]sharing_list_shared_links for deleted users?

[Python SDK]sharing_list_shared_links for deleted users?

Mandark
New member | Level 2
Go to solution

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:

 

def find_shared_links(dbxTeam: dropbox.DropboxTeam):
all_links = []
members = dbxTeam.team_members_list(include_removed=True)
for member in members.members:
print(member)
try:
member_links = dbxTeam.as_user(member.profile.team_member_id).sharing_list_shared_links(None)
except AuthError as e:
print(e, 'ERROR OCCURS ON DELETED ACCOUNTS HERE')
all_links.append(member_links)
return all_links

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

No, unfortunately there isn't a way to work around this or perform these calls for deleted team members, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

No, unfortunately there isn't a way to work around this or perform these calls for deleted team members, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

Mandark
New member | Level 2
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Mandark New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?