Skip to main content

This version of GitHub Enterprise Server was discontinued on 2023-09-25. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Searching users

You can search for users on GitHub Enterprise Server and narrow the results using these user search qualifiers in any combination.

You can search for users globally across all of GitHub Enterprise Server. For more information, see "About searching on GitHub."

Tips:

  • This article contains links to example searches on the GitHub.com website, but you can use the same search filters with GitHub Enterprise Server. In the linked example searches, replace github.com with the hostname for your GitHub Enterprise Server instance.
  • For a list of search syntaxes that you can add to any search qualifier to further improve your results, see "Understanding the search syntax".
  • Use quotations around multi-word search terms. For example, if you want to search for issues with the label "In progress," you'd search for label:"in progress". Search is not case sensitive.

Search only users or organizations

By default, searching users will return both personal and organizations. However, you can use the type qualifier to restrict search results to personal accounts or organizations only.

QualifierExample
type:usermike in:name created:<2011-01-01 type:user matches personal accounts named "mike" that were created before 2011.
type:orgdata in:email type:org matches organizations with the word "data" in their email.

Search by account name, full name, or public email

You can filter your search to the personal user or organization account name with user or org qualifiers.

With the in qualifier you can restrict your search to the username (login), full name, public email, or any combination of these. When you omit this qualifier, only the username and email address are searched. For privacy reasons, you cannot search by email domain name.

QualifierExample
user:nameuser:octocat matches the user with the username "octocat".
org:nameorg:electron type:users matches the Electron organization's account name.
in:loginkenya in:login matches users with the word "kenya" in their username.
in:namebolton in:name matches users whose real name contains the word "bolton."
fullname:firstname lastnamefullname:nat friedman matches a user with the full name "Nat Friedman." Note: This search qualifier is sensitive to spacing.
in:emaildata in:email matches users with the word "data" in their email.

Search by number of repositories a user owns

You can filter users based on the number of repositories they own, using the repos qualifier and greater than, less than, and range qualifiers.

QualifierExample
repos:nrepos:>9000 matches users whose repository count is over 9,000.
name repos:nbert repos:10..30 matches users with the word "bert" in their username or real name who own 10 to 30 repositories.

Search by location

You can search for users by the location indicated in their profile.

QualifierExample
location:LOCATIONrepos:1 location:iceland matches users with exactly one repository that live in Iceland.

Search by repository language

Using the language qualifier you can search for users based on the languages of repositories they own.

QualifierExample
language:LANGUAGE location:LOCATIONlanguage:javascript location:russia matches users in Russia with a majority of their repositories written in JavaScript.
name language:LANGUAGE in:fullnamejenny language:javascript in:fullname matches users with JavaScript repositories whose full name contains the word "jenny."

Search by when a personal account was created