I am getting 500 http status code for few user when i am making get_account_tree call.
For only one user I am getting application_restricted, how can this be possible? all other users are working fine.
I am making a curl call like this:
curl https://www.box.com/api/1.0/rest?\
action=get_account_tree&api_key=XXXXXX&auth_token=XXXXX\
¶ms[]=nofiles&folder_id=0
As indicated in the documentation, it’s strongly recommended that you use the
onelevelparameter because some Box accounts may be thousands of folders deep, in which case the call will not return. If you add this parameter to your get_account_tree calls, it should work without 500-ing.