Can't get list of users through JWT app
All I'm trying to do is use the API to get a list of users, and then impersonate said users to disable sharing links. However, right out the gate, I'm stymied: I successfully retrieve an access token and can get my user information, but any call to /users returns:
b'{"total_count":0,"entries":[],"limit":100,"offset":0}'
I have full control over the app, and it has as many permissions I could give it, including "Manage user".
What am I doing wrong?
-
Hi Chris
You need to make sure that the app has enterprise app access level. Also remember that after first admin app authorisation you need to re-authorise it for every change you make to scope and access level. (Also when you switch from 'App access only' to 'Enterprise' the console will automatically switch off the Advanced features 'Make API calls using the as-user header' and 'Generate user access tokens' - you will need these for your use case
Rgds, Peter Christensen, Platform Solutions Engineer, Box
投稿コメントは受け付けていません。
コメント
1件のコメント