User

A user is an individual's account on GitHub that owns repositories and can make new content.

Implements

Connections

contributedRepositories (RepositoryConnection)
A list of repositories that the user recently contributed to.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

If non-null, filters repositories according to whether they have been locked

followers (FollowerConnection)
A list of users the given user is followed by.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

following (FollowingConnection)
A list of users the given user is following.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

gists (GistConnection)
A list of the Gists the user has created.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

visibility GistVisibility

Allows filtering by gist visibility.

organizations (OrganizationConnection)
A list of organizations the user belongs to.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

pinnedRepositories (RepositoryConnection)
A list of repositories this user has pinned to their profile
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

If non-null, filters repositories according to whether they have been locked

pullRequests (PullRequestConnection)
A list of pull requests assocated with this user.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

states

A list of states to filter the pull requests by.

labels

A list of label names to filter the pull requests by.

headRefName String

The head ref name to filter the pull requests by.

baseRefName String

The base ref name to filter the pull requests by.

repositories (RepositoryConnection)
A list of repositories that the user owns.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

If non-null, filters repositories according to whether they have been locked

isFork Boolean

If non-null, filters repositories according to whether they are forks of another repository

starredRepositories (StarredRepositoryConnection)
Repositories the user has starred.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

ownedByViewer Boolean

Filters starred repositories to only return repositories owned by the viewer.

orderBy StarOrder

Order for connection

watching (RepositoryConnection)
A list of repositories the given user is watching.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

If non-null, filters repositories according to whether they have been locked

Fields

avatarURL (String)

A URL pointing to the user's public avatar.

Argument Type Description
size Int

The size of the resulting square image.

bio (String)

The user's public profile bio.

bioHTML (HTML)

The user's public profile bio as HTML.

company (String)

The user's public profile company.

companyHTML (HTML)

The user's public profile company as HTML.

createdAt (DateTime)

Identifies the date and time when the object was created.

databaseId (Int)
Deprecation notice

Exposed database IDs will eventually be removed in favor of global Relay IDs.

Identifies the primary key from the database.

email (String)

The user's publicly visible profile email.

gist (Gist)

Find gist by repo name.

Argument Type Description
name

The gist name to find.

isBountyHunter (Boolean)

Whether or not this user is a participant in the GitHub Security Bug Bounty.

isCampusExpert (Boolean)

Whether or not this user is a participant in the GitHub Campus Experts Program.

isDeveloperProgramMember (Boolean)

Whether or not this user is a GitHub Developer Program member.

isEmployee (Boolean)

Whether or not this user is a GitHub employee.

isHireable (Boolean)

Whether or not the user has marked themselves as for hire.

isSiteAdmin (Boolean)

Whether or not this user is a site administrator.

isViewer (Boolean)

Whether or not this user is the viewing user.

location (String)

The user's public profile location.

login (String)

The username used to login.

name (String)

The user's public profile name.

organization (Organization)

Find an organization by its login that the user belongs to.

Argument Type Description
login

The login of the organization to find.

path (URI)

The HTTP path for this user

repository (Repository)

Find Repository.

Argument Type Description
name

Name of Repository to find.

updatedAt (DateTime)
Deprecation notice

General type updated timestamps will eventually be replaced by other field specific timestamps.

Identifies the date and time when the object was last updated.

url (URI)

The HTTP url for this user

viewerCanFollow (Boolean)

Whether or not the viewer is able to follow the user.

viewerIsFollowing (Boolean)

Whether or not this user is followed by the viewer.

websiteURL (String)

A URL pointing to the user's public website/blog.