Return list of all users in BOX Enterprise Account

自作多情 提交于 2019-12-10 22:18:24

问题


I would like to export a list of all users in our Enterprise account. However, it would seem that my co-admin credentials fail to execute the example request listed in the BOX.com API 2.0 documentation:

curl https://api.box.com/2.0/users -H "Authorization: Bearer ACCESS_TOKEN"

The documentation indicates that this should return the current user's information if executed by a non-admin. However, in my case I am receiving a 403 Forbidden error. Am I missing something or executing this wrong? Does this API command require the main enterprise admin credentials? If I execute with the URL "https://api.box.com/2.0/users/me" it successfully returns my account information.


回答1:


You should be able to do this when logged in as an admin or coadmin. This appears to be a bug on our end. We're trying to fix it ASAP–I'll update here when it's been fixed.



来源:https://stackoverflow.com/questions/14700014/return-list-of-all-users-in-box-enterprise-account

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!