Skip to main content
Question

Collaborators added automatically

  • May 22, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

Can I have collaborators added automatically if  I provide a list? For example I would only need certain collaborators for some files, but we wouldn't want to add them manually every time.

1 reply

Forum|alt.badge.img

Hi ,

 

Yes you can supply a list of Box user Ids through your custom application / script using the "Add Collaborations" API. 

 

You will also need to decide on which level of access is appropriate for your use case: 

editor, viewer, previewer, uploader, previewer uploader, viewer uploader, or co-owner.

 

https://developer.box.com/reference#add-a-collaboration

 

 

curl https://api.box.com/2.0/collaborations \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID", "type": "user" }, "role": "editor"}' \
-X POST

 

Hope this helps,

Peter