Get Folder Information

Highlighted
Occasional Contributor

Get Folder Information

Could I get folder information by user id using API?

For example: Enter user id and folder id and the json result is (role : viewer ) etc.

1 REPLY 1
Box Employee

Re: Get Folder Information

@Mac_Dayao to get the collaborations on a file or folder, you can call the following endpoints

 

https://developer.box.com/reference/get-files-id-collaborations/

https://developer.box.com/reference/get-folderss-id-collaborations/

 

These will return a list of collaborations for those items, which you can then filter down to the user ID you are interested in.

 

Alternatively, if you make an API call to the following endpoints, you can request the permissions object for the currently authenticated user.

 

https://developer.box.com/reference/get-files-id/

https://developer.box.com/reference/get-folders-id/

 

What this will let you do is see the permissions that this user has on this file.

 

https://developer.box.com/reference/resources/file/#param-permissions

https://developer.box.com/reference/resources/folders/#param-permissions


---
Developer Advocate @ Box