返回Box中企业用户列表所需的特权 [英] Privileges required to return the list of enterprise users in Box

查看:105
本文介绍了返回Box中企业用户列表所需的特权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处之前,已经提出了此问题。 ,尽管我被添加为我的帐户的共同管理员,但我遇到了同样的问题。先前的问题不清楚该修复程序是什么使其正常工作,因此我再次询问。

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.

我正在尝试使用以下GET请求:

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

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

我正在使用有效的访问令牌设置Authorization标头。但是,当我发出请求时,我返回403禁止错误,并显示消息该请求需要比访问令牌提供的特权更高的特权。

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".

只是为了证明令牌正确,我可以使用 https:// api来获取自己的用户信息。 box.com/2.0/users/me API,该API返回包含我的信息的JSON对象。

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?

推荐答案

要为访问令牌提供企业级特权,必须启用在Box应用程序中管理企业范围。

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

这篇关于返回Box中企业用户列表所需的特权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆