Skip to main content

Managing policies for Copilot for Business in your organization

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

Who can use this feature

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

About managing policies for GitHub Copilot for Business

GitHub Copilot for Business is a GitHub Copilot subscription, managed at the organization level. 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.

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.

  1. In the top right corner of GitHub.com, click 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 top right corner of GitHub.com, click 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