Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

How to get enterprise users using API ongoing to python web framework

New post

Comments

1 comment

  • cbetta

    Hi , I'd recommend using our Python SDK.

     

    https://github.com/box/box-python-sdk

     

    You can then request all users with this API call

     

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

     

    Keep in mind your application needs to be configured to have the permission to see all users across the enterprise. If you are authenticated as an admin this should be straightforward, but if you are not there are a few steps to go through.

    0
    Comment actions Permalink

Please sign in to leave a comment.