Organization

An account on GitHub, with one or more owners, that has repositories, members and teams.

Implements

Connections

members (UserConnection)
A list of users who are members of this organization.
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

affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

isLocked Boolean

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

projects (ProjectConnection)
A list of projects under the owner.
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.

orderBy ProjectOrder

Ordering options for projects returned from the connection

search String

Query to search projects by, currently only searching by name.

states [ProjectState!]

A list of states to filter the projects 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

affiliations [RepositoryAffiliation]

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

teams (TeamConnection)
A list of teams in this organization.
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 TeamPrivacy

If non-null, filters teams according to privacy

role TeamRole

If non-null, filters teams according to whether the viewer is an admin or member on team

query String

If non-null, filters teams with query on team name and team slug

userLogins [String!]

User logins to filter by

orderBy TeamOrder

Ordering options for teams returned from the connection

ldapMapped Boolean

If true, filters teams that are mapped to an LDAP Group (Enterprise only)

rootTeamsOnly Boolean

If true, restrict to only root teams

Fields

avatarUrl (URI!)

A URL pointing to the organization's public avatar.

Argument Type Description
size Int

The size of the resulting square image.

databaseId (Int)
Deprecation notice

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

Identifies the primary key from the database.

description (String)

The organization's public profile description.

email (String)

The organization's public email.

isInvoiced (Boolean!)

Is the account billed through invoices?

location (String)

The organization's public profile location.

login (String!)

The organization's login name.

name (String)

The organization's public profile name.

newTeamResourcePath (URI!)

The HTTP path creating a new team

newTeamUrl (URI!)

The HTTP URL creating a new team

organizationBillingEmail (String)

The billing email for the organization.

project (Project)

Find project by number.

Argument Type Description
number Int!

The project number to find.

projectsResourcePath (URI!)

The HTTP path listing organization's projects

projectsUrl (URI!)

The HTTP URL listing organization's projects

repository (Repository)

Find Repository.

Argument Type Description
name String!

Name of Repository to find.

resourcePath (URI!)

The HTTP path for this user

samlIdentityProvider (OrganizationIdentityProvider)

The Organization's SAML Identity Providers

team (Team)

Find an organization's team by its slug.

Argument Type Description
slug String!

The name or slug of the team to find.

teamsResourcePath (URI!)

The HTTP path listing organization's teams

teamsUrl (URI!)

The HTTP URL listing organization's teams

url (URI!)

The HTTP URL for this user

viewerCanAdminister (Boolean!)

Organization is adminable by the viewer.

viewerCanCreateProjects (Boolean!)

Can the current viewer create new projects on this owner.

viewerCanCreateRepositories (Boolean!)

Viewer can create repositories on this organization

viewerCanCreateTeams (Boolean!)

Viewer can create teams on this organization.

viewerIsAMember (Boolean!)

Viewer is a member of this organization.

websiteUrl (URI)

The organization's public profile URL.