Welcome to the new Box Support website. Check out all the details here on what’s changed.

Comments

2 comments

  • braden

    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

    0
    Comment actions Permalink
  • davinpore

    How to convert the enterprise object into string

     
     
    0
    Comment actions Permalink

Please sign in to leave a comment.