Skip to main content

List Users

Summary

List the users in the site. Only site administrators can use this operation to list other user accounts. If you are authenticated as a user who is not a site administrator, only your own user information will be returned.

You can only list users associated with your site. Attempting to list a user with a name taken by another site will result in a 404 NOT FOUND error.

Endpoint

GET https://mysite.files.com/api/v2/users

Replace mysite.files.com with your site address.

Request Parameters

NameData TypeDescription
usernamestringThe username of the user you are looking for. Only entries with the same username as this will be in the list of results. Does not support wildcard searches.
homeResourcestringResource identifier for user's home directory. Does not support wildcard searches.
If you are providing a path, do not include a leading / character.
nicknamestringThe user's full name.
emailstringEmail address. Does not support wildcard searches.
rolestringuser or admin.
Site administrators will be admin and all other users are user.
statusinteger0 for locked users, 1 for active users.
offsetintegerUsed for paginating responses. Skip this number of results.
limitintegerUsed for paginating responses. Limit the total number of returned results.
sortstringWhich field to use for sorting the users list.
Valid options are nickname, username, email, homedir, or modified.

Pagination

The ExaVault legacy API does not include cursor-based pagination. Instead, you can use the limit and offset request parameters to restrict the number of results returned, and make multiple requests to retrieve subsequent pages of results.

The limit parameter is the maximum number of results that can be returned, starting from the beginning of the list or from the offset parameter value, if that was provided. The value of limit cannot be larger than 10,000.

The offset parameter represents how many records to skip before returning up to limit number of results.

Sorting

You can specify what order the results will be returned in by using the sort parameter. Valid options are nickname, username, email, homedir, or modified. All sorting is case-insensitive.

The sort order is ascending by default. To sort in descending order, prefix the sort value with - (a minus/hyphen character), for example: -modified.

Get Instant Access to Files.com

The button below will take you to our Free Trial signup page. Click on the white "Start My Free Trial" button, then fill out the short form on the next page. Your account will be activated instantly. You can dive in and start yourself or let us help. The choice is yours.