I'm attempting to retrieve comments on a file via the api, but I am getting a 403.
When I do a GET request here https://api.box.com/2.0/files//comments, with an As-User header, I receive this as a response.
{
"type": "error",
"status": 403,
"code": "access_denied_insufficient_permissions",
"help_url": "http://developers.box.com/docs/#errors" target="_blank">http://developers.box.com/docs/#errors>" target="_blank">http://developers.box.com/docs/#errors" target="_blank">http://developers.box.com/docs/#errors>>",
"message": "Access denied - insufficient permission",
"request_id": ""
}
I'm able to do this on the admin users files fine, and also able to access other endpoints such as collaborations/tasks/metadata with an As-User header.
One thing to note is the user is not active. They are set to "Cannot delete, edit & upload". If I set them to active, the request works. What I don't understand is why I can do the other endpoints while the user is in the "Cannot delete, edit & upload" state.
Is this expected?