I am trying to find the possible ways to get all the 1) Personal files and folder 2) team folder and files 3) Anything shared with the user. Basically a complete snapshot of what the particular user has access to with in the business account.
After reading through the documentations, looks like I need to following steps.
Is there any other simple way which will give me all the data that user has and also has access to?
For all of the below, I will be using 'Dropbox-API-Select-Admin' as one of the headers so that it has access to any user account with in the business account.
For business accounts, here is the flow for getting the data
from dropbox
1. namespaces (team/namespaces/list)
2. members (team/members/list)
To get the full data of a particular user,
1. Find the 'member_folder_id' of the user from
'members' api
2. Use that value as namespace id 'ns:member_folder_id' in the
header path.
3. From the 'namespaces' find all the 'shared_folder' where
this particular user is a member by calling
['sharing/list_folder_members' and by group APIs where user
can be a member]