Skip to main content
Question

Message: Access denied - insufficient permission for client.users(user_type='all')

  • May 22, 2025
  • 1 reply
  • 5 views

Forum|alt.badge.img

I am using JWTAuth. I am authenticating just fine as I can successfully run 

client = Client(config)
groups = client.get_groups()
for group in groups:
print('Group "{0}" has ID "{1}"'.format(group.name, group.id))

However When I try to get user info I get 

boxsdk.exception.BoxAPIException: Message: Access denied - insufficient permission
Status: 403
Code: access_denied_insufficient_permissions

I am copying code directly from the sdk docs

users = client.users(user_type='all')
for user in users:
print('{0} (User ID: {1})'.format(user.name, user.id))

I have tried changing user_type to 'managed' and that returns nothing.

 

Please advise.

 

 

1 reply

Forum|alt.badge.img

I love public forums on 3Billion company websites where you get to talk to yourself. 

Can anyone from Box take the time out of their busy day to assist with what should be a simple problem?

Or should I just annoy the support staff?