Queries
enterprise
Look up an enterprise by URL slug.
Type: Enterprise
Arguments for enterprise
| Name | Description |
|---|---|
| The enterprise invitation token. |
| The enterprise URL slug. |
enterpriseAdministratorInvitation
Look up a pending enterprise administrator invitation by invitee, enterprise and role.
Type: EnterpriseAdministratorInvitation
Arguments for enterpriseAdministratorInvitation
| Name | Description |
|---|---|
| The slug of the enterprise the user was invited to join. |
| The role for the enterprise member invitation. |
| The login of the user invited to join the enterprise. |
enterpriseAdministratorInvitationByToken
Look up a pending enterprise administrator invitation by invitation token. If the invitation was sent to an email address, the viewer must have verified that email address, or otherwise be an administrator of the enterprise.
Type: EnterpriseAdministratorInvitation
Arguments for enterpriseAdministratorInvitationByToken
| Name | Description |
|---|---|
| The invitation token sent with the invitation email. |
enterpriseMemberInvitation
Look up a pending enterprise unaffiliated member invitation by invitee and enterprise.
Type: EnterpriseMemberInvitation
Arguments for enterpriseMemberInvitation
| Name | Description |
|---|---|
| The slug of the enterprise the user was invited to join. |
| The login of the user invited to join the enterprise. |
enterpriseMemberInvitationByToken
Look up a pending enterprise unaffiliated member invitation by invitation token. If the invitation was sent to an email address, the viewer must have verified that email address, or otherwise be an administrator of the enterprise.
Type: EnterpriseMemberInvitation
Arguments for enterpriseMemberInvitationByToken
| Name | Description |
|---|---|
| The invitation token sent with the invitation email. |
Mutations
acceptEnterpriseAdministratorInvitation
Accepts a pending invitation for a user to become an administrator of an enterprise.
Input fields for acceptEnterpriseAdministratorInvitation
Return fields for acceptEnterpriseAdministratorInvitation
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The invitation that was accepted. |
| A message confirming the result of accepting an administrator invitation. |
acceptEnterpriseMemberInvitation
Accepts a pending invitation for a user to become an unaffiliated member of an enterprise.
Input fields for acceptEnterpriseMemberInvitation
Return fields for acceptEnterpriseMemberInvitation
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The invitation that was accepted. |
| A message confirming the result of accepting an unaffiliated member invitation. |
accessUserNamespaceRepository
Access user namespace repository for a temporary duration.
Input fields for accessUserNamespaceRepository
Return fields for accessUserNamespaceRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The time that repository access expires at. |
| The repository that is temporarily accessible. |
addEnterpriseOrganizationMember
Adds enterprise members to an organization within the enterprise.
Input fields for addEnterpriseOrganizationMember
Return fields for addEnterpriseOrganizationMember
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The users who were added to the organization. |
addEnterpriseSupportEntitlement
Adds a support entitlement to an enterprise member.
Input fields for addEnterpriseSupportEntitlement
Return fields for addEnterpriseSupportEntitlement
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A message confirming the result of adding the support entitlement. |
cancelEnterpriseAdminInvitation
Cancels a pending invitation for an administrator to join an enterprise.
Input fields for cancelEnterpriseAdminInvitation
Return fields for cancelEnterpriseAdminInvitation
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The invitation that was canceled. |
| A message confirming the result of canceling an administrator invitation. |
cancelEnterpriseMemberInvitation
Cancels a pending invitation for an unaffiliated member to join an enterprise.
Input fields for cancelEnterpriseMemberInvitation
Return fields for cancelEnterpriseMemberInvitation
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The invitation that was canceled. |
| A message confirming the result of canceling an member invitation. |
createEnterpriseOrganization
Creates an organization as part of an enterprise account. User-authenticated
requests make the viewer an owner. Users listed in adminLogins are invited
as owners unless owner invitations are disabled, in which case they are added
directly. Installation requests also add existing enterprise members directly.
Invitation failures do not roll back organization creation. A personal access
token used to create an organization is implicitly permitted to update the
organization it created, if the organization is part of an enterprise that has
SAML enabled or uses Enterprise Managed Users. If the organization is not part
of such an enterprise, and instead has SAML enabled for it individually, the
token will then require SAML authorization to continue working against that organization.
Input fields for createEnterpriseOrganization
Return fields for createEnterpriseOrganization
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise that owns the created organization. |
| The organization that was created. |
createIpAllowListEntry
Creates a new IP allow list entry.
Input fields for createIpAllowListEntry
input(CreateIpAllowListEntryInput!)
Return fields for createIpAllowListEntry
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The IP allow list entry that was created. |
deleteIpAllowListEntry
Deletes an IP allow list entry.
Input fields for deleteIpAllowListEntry
input(DeleteIpAllowListEntryInput!)
Return fields for deleteIpAllowListEntry
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The IP allow list entry that was deleted. |
grantEnterpriseOrganizationsMigratorRole
Grant the migrator role to a user for all organizations under an enterprise account.
Input fields for grantEnterpriseOrganizationsMigratorRole
Return fields for grantEnterpriseOrganizationsMigratorRole
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The organizations that had the migrator role applied to for the given user. |
inviteEnterpriseAdmin
Invite someone to become an administrator of the enterprise.
Input fields for inviteEnterpriseAdmin
input(InviteEnterpriseAdminInput!)
Return fields for inviteEnterpriseAdmin
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The created enterprise administrator invitation. |
inviteEnterpriseMember
Invite someone to become an unaffiliated member of the enterprise.
Input fields for inviteEnterpriseMember
input(InviteEnterpriseMemberInput!)
Return fields for inviteEnterpriseMember
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The created enterprise member invitation. |
regenerateEnterpriseIdentityProviderRecoveryCodes
Regenerates the identity provider recovery codes for an enterprise.
Input fields for regenerateEnterpriseIdentityProviderRecoveryCodes
Return fields for regenerateEnterpriseIdentityProviderRecoveryCodes
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The identity provider for the enterprise. |
removeEnterpriseAdmin
Removes an administrator from the enterprise.
Input fields for removeEnterpriseAdmin
input(RemoveEnterpriseAdminInput!)
Return fields for removeEnterpriseAdmin
| Name | Description |
|---|---|
| The user who was removed as an administrator. |
| A unique identifier for the client performing the mutation. |
| The updated enterprise. |
| A message confirming the result of removing an administrator. |
| The viewer performing the mutation. |
removeEnterpriseIdentityProvider
Removes the identity provider from an enterprise. Owners of enterprises both with and without Enterprise Managed Users may use this mutation.
Input fields for removeEnterpriseIdentityProvider
Return fields for removeEnterpriseIdentityProvider
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The identity provider that was removed from the enterprise. |
removeEnterpriseMember
Completely removes a user from the enterprise asynchronously.
Input fields for removeEnterpriseMember
input(RemoveEnterpriseMemberInput!)
Return fields for removeEnterpriseMember
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated enterprise. |
| The user that was removed from the enterprise. |
| The viewer performing the mutation. |
removeEnterpriseOrganization
Removes an organization from the enterprise.
Input fields for removeEnterpriseOrganization
Return fields for removeEnterpriseOrganization
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated enterprise. |
| The organization that was removed from the enterprise. |
| The viewer performing the mutation. |
removeEnterpriseSupportEntitlement
Removes a support entitlement from an enterprise member.
Input fields for removeEnterpriseSupportEntitlement
Return fields for removeEnterpriseSupportEntitlement
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A message confirming the result of removing the support entitlement. |
revokeEnterpriseOrganizationsMigratorRole
Revoke the migrator role to a user for all organizations under an enterprise account.
Input fields for revokeEnterpriseOrganizationsMigratorRole
Return fields for revokeEnterpriseOrganizationsMigratorRole
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The organizations that had the migrator role revoked for the given user. |
setEnterpriseIdentityProvider
Creates or updates the identity provider for an enterprise.
Input fields for setEnterpriseIdentityProvider
Return fields for setEnterpriseIdentityProvider
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The identity provider for the enterprise. |
transferEnterpriseOrganization
Transfer an organization from one enterprise to another enterprise.
Input fields for transferEnterpriseOrganization
Return fields for transferEnterpriseOrganization
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The organization for which a transfer was initiated. |
updateEnterpriseAdministratorRole
Updates the role of an enterprise administrator.
Input fields for updateEnterpriseAdministratorRole
Return fields for updateEnterpriseAdministratorRole
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A message confirming the result of changing the administrator's role. |
updateEnterpriseAllowPrivateRepositoryForkingSetting
Sets whether private repository forks are enabled for an enterprise.
Input fields for updateEnterpriseAllowPrivateRepositoryForkingSetting
Return fields for updateEnterpriseAllowPrivateRepositoryForkingSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated allow private repository forking setting. |
| A message confirming the result of updating the allow private repository forking setting. |
updateEnterpriseDefaultRepositoryPermissionSetting
Sets the base repository permission for organizations in an enterprise.
Input fields for updateEnterpriseDefaultRepositoryPermissionSetting
Return fields for updateEnterpriseDefaultRepositoryPermissionSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated base repository permission setting. |
| A message confirming the result of updating the base repository permission setting. |
updateEnterpriseDeployKeySetting
Sets whether deploy keys are allowed to be created and used for an enterprise.
Input fields for updateEnterpriseDeployKeySetting
Return fields for updateEnterpriseDeployKeySetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated deploy key setting. |
| A message confirming the result of updating the deploy key setting. |
updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
Sets whether organization members with admin permissions on a repository can change repository visibility.
Input fields for updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
Return fields for updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can change repository visibility setting. |
| A message confirming the result of updating the members can change repository visibility setting. |
updateEnterpriseMembersCanCreateRepositoriesSetting
Sets the members can create repositories setting for an enterprise.
Input fields for updateEnterpriseMembersCanCreateRepositoriesSetting
Return fields for updateEnterpriseMembersCanCreateRepositoriesSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can create repositories setting. |
| A message confirming the result of updating the members can create repositories setting. |
updateEnterpriseMembersCanDeleteIssuesSetting
Sets the members can delete issues setting for an enterprise.
Input fields for updateEnterpriseMembersCanDeleteIssuesSetting
Return fields for updateEnterpriseMembersCanDeleteIssuesSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can delete issues setting. |
| A message confirming the result of updating the members can delete issues setting. |
updateEnterpriseMembersCanDeleteRepositoriesSetting
Sets the members can delete repositories setting for an enterprise.
Input fields for updateEnterpriseMembersCanDeleteRepositoriesSetting
Return fields for updateEnterpriseMembersCanDeleteRepositoriesSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can delete repositories setting. |
| A message confirming the result of updating the members can delete repositories setting. |
updateEnterpriseMembersCanInviteCollaboratorsSetting
Sets whether members can invite collaborators are enabled for an enterprise.
Input fields for updateEnterpriseMembersCanInviteCollaboratorsSetting
Return fields for updateEnterpriseMembersCanInviteCollaboratorsSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can invite collaborators setting. |
| A message confirming the result of updating the members can invite collaborators setting. |
updateEnterpriseMembersCanMakePurchasesSetting
Sets whether or not an organization owner can make purchases.
Input fields for updateEnterpriseMembersCanMakePurchasesSetting
Return fields for updateEnterpriseMembersCanMakePurchasesSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can make purchases setting. |
| A message confirming the result of updating the members can make purchases setting. |
updateEnterpriseMembersCanUpdateProtectedBranchesSetting
Sets the members can update protected branches setting for an enterprise.
Input fields for updateEnterpriseMembersCanUpdateProtectedBranchesSetting
Return fields for updateEnterpriseMembersCanUpdateProtectedBranchesSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can update protected branches setting. |
| A message confirming the result of updating the members can update protected branches setting. |
updateEnterpriseMembersCanViewDependencyInsightsSetting
Sets the members can view dependency insights for an enterprise.
Input fields for updateEnterpriseMembersCanViewDependencyInsightsSetting
Return fields for updateEnterpriseMembersCanViewDependencyInsightsSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated members can view dependency insights setting. |
| A message confirming the result of updating the members can view dependency insights setting. |
updateEnterpriseOrganizationProjectsSetting
Sets whether organization projects are enabled for an enterprise.
Input fields for updateEnterpriseOrganizationProjectsSetting
Return fields for updateEnterpriseOrganizationProjectsSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated organization projects setting. |
| A message confirming the result of updating the organization projects setting. |
updateEnterpriseOwnerOrganizationRole
Updates the role of an enterprise owner with an organization.
Input fields for updateEnterpriseOwnerOrganizationRole
Return fields for updateEnterpriseOwnerOrganizationRole
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A message confirming the result of changing the owner's organization role. |
updateEnterpriseProfile
Updates an enterprise's profile.
Input fields for updateEnterpriseProfile
input(UpdateEnterpriseProfileInput!)
Return fields for updateEnterpriseProfile
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated enterprise. |
updateEnterpriseRepositoryProjectsSetting
Sets whether repository projects are enabled for a enterprise.
Input fields for updateEnterpriseRepositoryProjectsSetting
Return fields for updateEnterpriseRepositoryProjectsSetting
| Name | Description |
|---|---|
|