Python - View all Collaborations/Folders a specific user has

New post

Comments

3 comments

  • Shane Serirom

    API Reference Page:  https://developer.box.com/reference/

    Please find "List folder collaborations"
    or the url: https://developer.box.com/reference/get-folders-id-collaborations/

    The API is to retrieves a list of pending and active collaborations for a folder.
    This returns all the users that have access to the folder or have been invited to the folder.

    To start using API you should use POSTMAN to test getting data from the API that you want.
    Then after you getting data successful, you would use any programming language to get data automatically.

    0
    Comment actions Permalink
  • Aundrea Brown

    Good Morning Shane Serirom,

    Unfortunately, that response does not answer the question/issue I asked about.

    I understand I can get one folder and get all the collaborators on it. My problem is that I need the opposite, I know one collaborator, and I need to know everything they currently collaborate on.

    I reviewed the API with a coworker yesterday, including the get folder id collaborations. And the problem is, you can only search off a folder string itself. 

    I'm hoping to find a more efficient method than grabbing ALL the folders in the entire tenant and running a FOR loop to find these. As that is grossly inefficient and time intensive given the size of the tenant.

    Thank you

    0
    Comment actions Permalink
  • Rui Barbosa

    Hi Aundrea,

    You are correct, there is no way via the API to check all the collaborations by user. So a python script to ping all the files owned by the user and dump the collaborations somewhere might be the way to go.

    This is not an uncommon request, although if you could elaborate on your use case, the why you need to check the collaborations once a user leaves, it would help us make the case internally to the product manager to include this in the road map.

    Even better if you could log this idea in https://pulse.box.com/, PM's do monitor this site.

    We do appreciate this feedback.

    0
    Comment actions Permalink

Please sign in to leave a comment.