Box Developer Documentation
 
    Latest version

    List enterprise users

    get
    https://api.box.com/2.0
    /users

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Returns a list of all users for the Enterprise along with their user_id, public_name, and login.

    The application and the authenticated user need to have the permission to look up users in the entire enterprise.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Query Parameters

    stringin queryoptional
    my-user-1234

    Limits the results to app users with the given external_app_user_id value.

    When creating an app user, an external_app_user_id value can be set. This value can then be used in this endpoint to find any users that match that external_app_user_id value.

    string arrayin queryoptional
    id,type,name

    A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.

    Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.

    stringin queryoptional
    john

    Limits the results to only users who's name or login start with the search term.

    For externally managed users, the search term needs to completely match the in order to find the user, and it will only return one user at a time.

    integer (int64)in queryoptional
    1000
    1000

    The maximum number of items to return per page.

    stringin queryoptional
    JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

    Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.

    This requires usemarker to be set to true.

    integer (int64)in queryoptional
    1000
    0

    The offset of the item at which to begin the response.

    Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.

    booleanin queryoptional
    true

    Specifies whether to use marker-based pagination instead of offset-based pagination. Only one pagination method can be used at a time.

    By setting this value to true, the API will return a marker field that can be passed as a parameter to this endpoint to get the next page of the response.

    stringin queryoptional
    managed

    Limits the results to the kind of user specified.

    • all returns every kind of user for whom the login or name partially matches the filter_term. It will only return an external user if the login matches the filter_term completely, and in that case it will only return that user.
    • managed returns all managed and app users for whom the login or name partially matches the filter_term.
    • external returns all external users for whom the login matches the filter_term exactly.

    Value is one of all,managed,external

    Response

    application/jsonUsers

    Returns all of the users in the enterprise.

    application/jsonClient error

    An unexpected client error.

    get
    List enterprise users
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    Response Example

    {
      "entries": [
        {
          "id": "11446498",
          "type": "user",
          "login": "ceo@example.com",
          "name": "Aaron Levie",
          "address": "900 Jefferson Ave, Redwood City, CA 94063",
          "avatar_url": "https://www.box.com/api/avatar/large/181216415",
          "created_at": "2012-12-12T10:53:43-08:00",
          "job_title": "CEO",
          "language": "en",
          "max_upload_size": 2147483648,
          "modified_at": "2012-12-12T10:53:43-08:00",
          "notification_email": {
            "email": "notifications@example.com",
            "is_confirmed": true
          },
          "phone": "6509241374",
          "space_amount": 11345156112,
          "space_used": 1237009912,
          "status": "active",
          "timezone": "Africa/Bujumbura",
          "can_see_managed_users": true,
          "enterprise": {
            "id": "11446498",
            "name": "Acme Inc.",
            "type": "enterprise"
          },
          "external_app_user_id": "my-user-1234",
          "hostname": "https://example.app.box.com/",
          "is_exempt_from_device_limits": true,
          "is_exempt_from_login_verification": true,
          "is_external_collab_restricted": true,
          "is_platform_access_only": true,
          "is_sync_enabled": true,
          "my_tags": [
            "important"
          ],
          "role": "admin",
          "tracking_codes": [
            {
              "name": "department",
              "type": "tracking_code",
              "value": "Sales"
            }
          ]
        }
      ],
      "limit": 1000,
      "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
      "offset": 2000,
      "order": [
        {
          "by": "type",
          "direction": "ASC"
        }
      ],
      "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
      "total_count": 5000
    }