Skip to main content

GitHub

GitHub hosts source code for organizations. The GitHub connector reads one GitHub organization through the Owlie GitHub App and syncs its members, organization roles, teams, team membership and team hierarchy into Owlie. It can invite a GitHub user into the organization and remove a member. Role and team assignments are visible for review but Owlie does not add or remove them. The connector does not read repositories, repository permissions or outside collaborators.

For an enterprise whose accounts are managed users, use GitHub Enterprise Managed Users instead.

Capabilities​

CapabilitySupportedDetails
SyncYesActive organization members, organization roles and teams, plus role assignments, direct team membership and team hierarchy.
Incremental syncNoEvery run is a full sync.
Account provisioningPartlyProvision invites a GitHub user into the organization. Revoke removes the organization membership. Update, disable and enable are refused.
Grant writesNoAll four Grant kinds are read-only.
NotificationsNo
Custom operationsYesSet Team Membership Role changes a direct team member between Member and Maintainer.

Authentication​

The connector has one authentication method, GitHub App. You install the Owlie GitHub App on your organization, and Owlie requests short-lived installation tokens for each operation. Owlie owns the app. There are no client IDs, secrets or tokens to enter, and a personal access token or a GitHub App of your own is not an alternative.

The connector runs only in Owlie's cloud. It can't be assigned to a private-network gateway, and it can't be forked or duplicated in the Connector Builder.

Get credentials from GitHub​

There is nothing to create in GitHub beforehand. The person who connects must be an active owner of the GitHub organization. During the connection GitHub asks that person to approve two organization permissions:

GitHub App permissionLevelUsed for
Organization MembersRead and writeReading members, invitations and teams, inviting a member, removing a member, and the team role operation.
Organization Custom organization rolesReadReading organization role definitions and their assignments.

The app requests no repository permissions. GitHub explains the install screen in Installing a GitHub App from a third party.

Connect GitHub in Owlie​

The install form has no fields to fill in.

  1. Install the GitHub connector in Admin > Integrations, then open the integration's Connection tab.
  2. Select Install GitHub App. GitHub opens the Owlie GitHub App's install page.
  3. Choose the organization and approve the permissions.
  4. GitHub then asks you to authorize as yourself. Owlie uses that sign-in once, to check that you are an active owner of the organization you chose, and does not keep it.

The Connection tab then shows the organization as connected. One GitHub App installation can be connected to one Owlie integration only. To connect a second organization, install the connector again and install the app on that organization.

The connection test reads the organization and one page each of its invitations, teams and organization roles. It fails if the installation lacks either permission.

Disconnecting in Owlie removes Owlie's link to the installation. It doesn't uninstall the app from your GitHub organization. If an owner suspends or uninstalls the app in GitHub, Owlie stops syncing and provisioning until the app is active again.

Entities​

EntityIn GitHubIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserAn active member of the organization. This is the account entity.loginlogin, id, html_url, avatar_urlYesYesYesYesNo
Organization RoleOwner, plus each assignable organization role GitHub returns.idname, description, permissionsYesNoNoNoNo
TeamA team in the organization.slugname, slug, description, privacy, parentYesNoNoNoNo

For User, Create invites the user and Delete removes the organization membership. Owlie refuses an update of a member, because an organization membership has no attributes to change.

A pending invitation is not an active member, so Owlie doesn't sync it as a user. By default, Sync matches a member to an identity by the GitHub login against the identity's display name, and flags a member it can't match. Most organizations need a different rule. See account matching.

Grant kinds​

Grant kindIn GitHubPrincipal → targetWritableQualifiersPasses access through
has_organization_roleA member holds an organization role directly.User → Organization RoleNoNoneNo
team_has_organization_roleA team holds an organization role.Team → Organization RoleNoNoneNo
member_of_teamA member belongs directly to a team.User → TeamNoNoneNo
child_of_teamA team's parent team.Team → TeamNoNoneNo

Owlie syncs these for review and does not add or remove them. A role a member holds only through a team appears on the team, not on the member. A member who is in a team only through a child team is not shown as a direct member of the parent.

Provisioning behaviour and limits​

OperationWhat happens in GitHub
ProvisionInvites the GitHub user named by login to the organization as a member. If that user is already a member, nothing changes. The account stays pending in Owlie until the user accepts the invitation.
RevokeRemoves the user's organization membership. The person loses access to the organization's private repositories and teams. To restore access, invite them again.

login is the exact GitHub username to invite. The default provisioning profile takes it from the identity's external ID, which GitHub Sync fills with the member's login. If your identities use the external ID for something else, change the login mapping in the resource's provisioning profile before you provision. Owlie invites by username only, never by email address.

Set Team Membership Role takes a Team, a GitHub Login and a Team Role of member or maintainer. The user must already be a direct member of the team: the operation changes a role and never adds someone to a team.

Limits:

  • Update, disable and enable are refused for organization members, with "GitHub update is unavailable for organization members." or the same message for disable or enable.
  • Owlie doesn't change an organization owner through provisioning. Inviting a user who is already an owner is refused.
  • When GitHub rate-limits requests, Owlie waits for the reset time GitHub reports before it sends more.
  • GitHub can refuse a team change when the team is synchronized from an identity provider. Owlie reports that refusal as a failure.

Troubleshooting​

Connecting fails with "An active GitHub organization owner must authorize this connection." The person who authorized is not an active owner of the organization the app was installed on. Have an owner connect.

The connection test fails after the app's permissions changed. The installation no longer has Members and Custom organization roles. Approve the requested permissions on the app's installation page in GitHub, then test again.

A provisioned account stays pending. The person has not accepted GitHub's invitation yet. The account becomes active on the next account Sync after they accept.

Changelog​

The GitHub connector is at version 1. Owlie shows each connector's changelog with the connector in the catalog.