How to get all files shared with a specific user using the API
Essentially i need to get files shared by me to a specific email address and files shared with me by the same email address.
To get files shared with me i can use the search route, by using the email address as the query parameter.
https://developer.box.com/reference#searching-for-content
However i could not find a plausible way or an api route to fetch files i have shared with others.
-
Hi,
If you have a co-admin or admin access to Box portal, you could just run a collaboration or shared link report to get all the collabs and filter it via your email address.
Details can be found here: https://community.box.com/t5/How-to-Guides-for-Admins/Running-Reports/ta-p/26790
If you need to use an API, the way would be to iterate through each folders and get the collaboration on each files and folders within it and loop through the collaboration to check if you are part of it. You may have to recursively iterate all folders in order to get the result.
Hope this helped.
thanks,
Bibek
Please sign in to leave a comment.
Comments
1 comment