Skip to main content

Managing policies for Copilot Business in your organization

Learn how to manage policies for GitHub Copilot Business in your organization.

Who can use this feature

Organization owners can configure policies for GitHub Copilot Business for their organization.

About managing policies for GitHub Copilot Business

GitHub Copilot Business is a GitHub Copilot subscription, managed at the organization or enterprise level. Enterprise owners can manage policies for organizations within the enterprise. Organization owners can manage policies for the use of GitHub Copilot within the organization. The policy settings selected by an organization owner determine the behavior of GitHub Copilot for all organization members granted access to Copilot through the organization.

Where explicit settings have been selected at the enterprise level, an organization owner cannot override those settings at the organization level. For more information on managing policies at the enterprise level, see "Enforcing policies for GitHub Copilot in your enterprise."

Configuring suggestion matching policies for GitHub Copilot in your organization

GitHub Copilot includes a filter which detects code suggestions that match public code on GitHub. Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If your suggestion matching policy is configured to block matching code, matching suggestions will not be shown to you.

If your enterprise admin has selected No policy (let each organization decide) for suggestion matching at the enterprise level, you can set a suggestion matching policy for your organization. If an organization member is assigned a seat by multiple organizations with different suggestion matching policies under the same enterprise, GitHub Copilot will use the most restrictive policy.

  1. In the upper-right corner of GitHub.com, select your profile photo, then click Your organizations.

    Screenshot of the dropdown menu under @octocat's profile picture. "Your organizations" is outlined in dark orange.

  2. Next to the organization, click Settings.

  3. In the "Code, planning, and automation" section of the sidebar, click Copilot, and then click Policies.

  4. In the "Suggestions matching public code" dropdown, select Allow or Block to allow or block suggestions matching public code.

Configuring GitHub Copilot Chat use in your organization

GitHub Copilot Chat is a feature that allows users to chat with GitHub Copilot to get code suggestions and answers to coding related questions. You can enable or disable GitHub Copilot Chat for your organization. For more information, see "About GitHub Copilot Chat."

  1. In the upper-right corner of GitHub.com, select your profile photo, then click Your organizations.

    Screenshot of the dropdown menu under @octocat's profile picture. "Your organizations" is outlined in dark orange.

  2. Next to the organization, click Settings.

  3. In the "Code, planning, and automation" section of the sidebar, click Copilot, and then click Policies.

  4. Under "Features preview", to the right of GitHub Copilot Chat, in the dropdown, select Allowed or Blocked to allow or block GitHub Copilot Chat in your organization.

Further reading