Getting collaborators of a Folder through Java API
Hi,
So I am trying to get collaborators and their permissions on box files and folders using Java API.
To get permission of a certain file, I did
file.getAllFileCollaborations
and then for each collaboration `col` I did
col.getAccessibleBy, col.getRole
and it works totally fine. But when I try to do the exact same thing for folder, using
folder.getCollaborations
and then for every collaboration col if I do
col.getAccessibleBy.getName
It throws this exception:
java.lang.NullPointerException
What am I doing wrong? Here I must tell you that I am not the owner of this folder, but I can access it as I am a collaborator.
-
For anyone else looking for similar assistance with the Java SDK, there is additional context and responses on this GitHub issue.
Please sign in to leave a comment.
Comments
1 comment