Retrieve List of Folders for an Owner
回答済みIs there an API call that will return all folders that are owned by a specific user? We need to know what a person has out there when a user is terminated.
-
正式なコメント
Hi Deb,
There isn't an endpoint to fetch every folder that is owned by a user with 1 call, but here's how you would structure this:
- You'll get an access token for the user that you want to get the folders for.
- Then you'll call the list items in folder endpoint, passing in 0 as the folder ID. This will retrieve all files / folders at the root of that user's Box instance.
- Loop through that list of items, then for each folder you see, call the list items in folder endpoint endpoint again, and run the same process over again.
Essentially you're setting up a recursive script to run through all folders, which will allow you to obtain a full list of user files / folders.
Alternately, there's the transfer owned folders endpoint which will just allow you to transfer all of the files / folders / workflows from one account to another. This is an all or nothing call (transfers everything).
We also have this guide on user deprovisioning that might help.
Hope that helps,
Jon
コメントアクション
サインインしてコメントを残してください。
コメント
2件のコメント