Privileges required to return the list of enterprise users in Box

﹥>﹥吖頭↗ 提交于 2019-12-12 05:37:26

问题


This question has been raised before here, but I am getting the same issue, despite being added as a co-admin under my account. The previous question does not make it clear as to what the fix was to get it working, hence me asking again.

I am trying to get a list of users using the following GET request:

https://api.box.com/2.0/users

I am setting the Authorization header with a valid access token. However, when I make the request I get back a 403 Forbidden error, with the message "The request requires higher privileges than provided by the access token".

Just to prove the tokens are correct, I am able to get my own user information using the https://api.box.com/2.0/users/me API, which return a JSON object with my information.

So my question is, is there anything else I need to do/configure to get this working?


回答1:


In order to give your access tokens enterprise-level privileges, you must enable the Manage an Enterprise scope in your Box application.



来源:https://stackoverflow.com/questions/22098865/privileges-required-to-return-the-list-of-enterprise-users-in-box

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