Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

shared link details using box api

New post

Comments

2 comments

  • Bibek

    Hi ,

    If you are looking for whom the folder or file is being shared using "shared_link" then, there is no way to get it BUT if you are looking for a way to get the collaborator/s on that specific folder then you have to do the following:

    • Run this on the folder with the folder_ID
      curl https://api.box.com/2.0/folders/FOLDER_ID/collaborations \
      -H "Authorization: Bearer ACCESS_TOKEN"
    • As a result you will get a collaboration ID or IDs associated with the folder. 
      "type": "collaboration",
                  "id": "14176246",
    • In this step use those collaboration IDs to get the individual collaborator name, login and type:
      curl https://api.box.com/2.0/collaborations/COLLAB_ID \
      -H "Authorization: Bearer ACCESS_TOKEN"
    • sample result
      accessible_by": {
              "type": "user",
              "id": "18203124",
              "name": "sean",
              "login": "***@example.com"
          }

    Hope this helps.

     

    thanks,

    Bibek

    0
    Comment actions Permalink
  • amatta

    Hi Bibek,

    Thank you for the information. Actually I know this information exist in collaborator activity.  But i want exact person to whom I have shared the file/folder. Seems box does not giving this information.

    0
    Comment actions Permalink

Please sign in to leave a comment.