Regarding fetching the list of users, with API v2.1

Hey,

I am currently using the Travis CI API version 2.1 and trying to retrieve a list of users using the /users endpoint provided in the API documentation. However, I am only able to get the currently authenticated user. Is there any way to obtain a list of all users?

Hi @PravinBirla,

You’re correct — the /users endpoint in Travis CI API v2.1 only returns the currently authenticated user. Unfortunately, there’s no supported way to retrieve a list of all users via the Travis CI API, even in v3. This is by design, as Travis doesn’t expose a global user listing endpoint due to permission and privacy concerns.

If you’re trying to manage users or get a complete list, your best bet is to pull that data from your version control system (like GitHub, GitLab, or Bitbucket). For example, if you’re using GitHub, you can use the GitHub API to list all members of your org, which essentially reflects who can access your Travis CI projects.

Travis does provide the /accounts endpoint to list what accounts (personal and org) you have access to, but not the users within them.

If you really need full user visibility within Travis, you might consider maintaining that list manually or syncing it from your source control provider.