Skip to main content
Question

Enterprise Object

  • May 22, 2025
  • 2 replies
  • 5 views

Forum|alt.badge.img

Seeking for your kind assistance how to get this value using the django restapi

 

BOX_nq6vxfyu25wkh5m9ey27o3q60ns6q3j7.png

2 replies

Forum|alt.badge.img

Hi  

 

Thanks for posting in the Box Community! It looks like you were making a GET call to the Users endpoint from the screenshot you've shown, so here's the link to the Python SDK docs about making this same call: https://github.com/box/box-python-sdk/blob/master/docs/usage/user.md

 

If you just want the information you highlighted in your screenshot, then you'd also want to define the fields you want returned from your call. This information is shown in the link above, but I've also pulled it out here:

You can specify which fields on the User object you want by passing an Iterable of field names:

user_id = '33333'
user = client.user(user_id).get(['id', 'name', 'login', 'is_sync_enabled'])

if user.is_sync_enabled:
    print('User {0} has sync enabled'.format(user.id))

Let us know if you have further questions or need clarification!

 

Cheers,

Braden


Forum|alt.badge.img

How to convert the enterprise object into string