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
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

pinnedRepositories (RepositoryConnection!)

A list of repositories this user has pinned to their profile

Argument Type Description
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

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

before String

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

first Int

Returns the first n elements from the list.

isLocked Boolean

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

last Int

Returns the last n elements from the list.

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

projects (ProjectConnection!)

A list of projects under the owner.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

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
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

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

before String

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

first Int

Returns the first n elements from the list.

isFork Boolean

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

isLocked Boolean

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

last Int

Returns the last n elements from the list.

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

teams (TeamConnection!)

A list of teams in this organization.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

ldapMapped Boolean

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

orderBy TeamOrder

Ordering options for teams returned from the connection

privacy TeamPrivacy

If non-null, filters teams according to privacy

query String

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

role TeamRole

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

rootTeamsOnly Boolean

If true, restrict to only root teams

userLogins [String!]

User logins to filter by

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.

id (ID!)
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.