To search for users, use the following search qualifiers in any combination.
Tips:
- This article contains example searches on the GitHub.com website, but you can use the same search filters on your GitHub Enterprise instance.
- There's a list of search syntaxes you can add to any search qualifier to further improve your results.
- Use quotations around your 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 for 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.
- tom in:email type:org
- Matches organizations with the word tom in their email.
- mike in:name created:<2011-01-01 type:user
- Matches personal accounts named mike that were created before 2011.
Scope the search fields
The in qualifier limits what fields are searched. With this qualifier you can restrict the search to the username, public email, full name, or any combination of these. Without the qualifier, only the username and email address are searched.
- tom in:email
- Matches users with the word tom in their email. For privacy reasons, you cannot search by domain name.
- kenya in:login
- Matches users with the word kenya in their username.
- bolton in:fullname
- Matches users whose real name has the word Bolton.
Search based on the number of repositories a user has
The repos qualifier filters users based on the number of repositories they have. For example:
- repos:>9000
- Matches users whose repository count is over 9,000.
- bert repos:10..30
- Matches users with the word "bert" in their username or real name who own 10 to 30 repositories.
Search based on the location where a user resides
You can choose to filter users by the location indicated in their profile. For example:
- repos:1 location:iceland
- Matches users with exactly one repository that live in Iceland.
Search based on the languages of a user's repositories
You can search for users that own repositories that match a certain language via the language qualifiers. For example:
- language:javascript location:russia
- Matches users in Russia with a majority of their repositories written in JavaScript.
- jenny language:javascript in:fullname
- Matches users with JavaScript repositories whose full name contains the word Jenny.
Search based on when a user joined GitHub Enterprise
You can filter users based on when they joined with the created qualifier. This takes a date as its parameter. Date formatting must follow the ISO8601 standard, which is YYYY-MM-DD
--that's year-month-day.
You may also add some optional time information, formatted as THH:MM:SS+07:00
--that's hour-minutes-seconds (HH:MM:SS
), followed by a UTC offset (+07:00
)
Dates support greater than, less than, and range qualifiers. For example:
- created:<2011-01-01
- Matches users that joined before 2011.
- created:>=2013-05-11
- Matches users that joined at or after May 11th, 2013.
- created:2013-03-06 location:london
- Matches users that joined on March 6th, 2013, who list their location as London.
- created:2010-01-01..2011-01-01 john in:login
- Matches users that joined between 2010 and 2011 with the word "john" in their username.
Search based on the number of followers a user has
You can filter users based on the number of followers that they have with the followers qualifier. For example:
- followers:>=1000
- Matches users with 1,000 or more followers.
- sparkle followers:1..10
- Matches users with between 1 and 10 followers, with the word sparkle in their name.
Sort the results
With any of the qualifiers above, you can also choose to sort on these properties:
- Number of followers
- Number of repositories
- When they joined GitHub Enterprise
These can be in ascending or descending order.