Skip to main content
Question

Can't get list of users through JWT app

  • May 22, 2025
  • 1 reply
  • 14 views

Forum|alt.badge.img

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?

1 reply

Forum|alt.badge.img

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
BOX1_xx8XWFWsoKhWAUqaHC_V6w.pngRgds, Peter Christensen, Platform Solutions Engineer, Box