Restructure content about managing copilot (#50997)
Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Canceling Copilot for your organization
|
||||
shortTitle: Cancel subscription
|
||||
intro: 'Removing all assigned {% data variables.product.prodname_copilot %} seats in your organization will cancel your organization''s {% data variables.product.prodname_copilot_short %} subscription.'
|
||||
permissions: Organization owners
|
||||
product: '{% data variables.product.prodname_copilot_business_short %}'
|
||||
versions:
|
||||
feature: copilot
|
||||
topics:
|
||||
- Copilot
|
||||
---
|
||||
|
||||
{% ifversion ghec %}
|
||||
>[!NOTE]
|
||||
> If your organization was granted access to {% data variables.product.prodname_copilot_short %} through an enterprise, your enterprise admin will need to cancel the subscription instead. See "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/canceling-copilot-for-your-enterprise)."
|
||||
{% endif %}
|
||||
|
||||
To cancel your {% data variables.product.prodname_copilot_business_short %} subscription for your organization account, you need to remove all assigned {% data variables.product.prodname_copilot %} seats.
|
||||
|
||||
{% data reusables.copilot.disable-copilot-organization %}
|
||||
@@ -0,0 +1,306 @@
|
||||
---
|
||||
title: Configuring content exclusions for GitHub Copilot
|
||||
shortTitle: Excluding content
|
||||
intro: 'You can prevent specified files from being used to inform code completion suggestions made by {% data variables.product.prodname_copilot %}. {% data variables.product.prodname_copilot %} will not be available in excluded files.'
|
||||
product: 'This feature is available for organization and enterprise accounts with a {% data variables.product.prodname_copilot_business_short %} subscription, and for enterprise accounts with a {% data variables.product.prodname_copilot_enterprise_short %} subscription.'
|
||||
permissions: 'Repository administrators and organization owners can manage the content exclusion settings for {% data variables.product.prodname_copilot %}. <br><br> People with the "Maintain" role for a repository can view the content exclusion settings for that repository, but can''t change these settings. For more information, see "[AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization)."'
|
||||
redirect_from:
|
||||
- /copilot/managing-copilot-business/configuring-content-exclusions-for-github-copilot
|
||||
- /copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot
|
||||
layout: inline
|
||||
topics:
|
||||
- Copilot
|
||||
versions:
|
||||
feature: copilot
|
||||
---
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:**
|
||||
|
||||
{% data reusables.copilot.content-exclusion-note %}
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## About configuring content exclusions
|
||||
|
||||
You may want to prevent certain files from being available to {% data variables.product.prodname_copilot %}. You can configure {% data variables.product.prodname_copilot %} so that it ignores these files. You do this by specifying paths to excluded content in the settings for your repository or organization.
|
||||
|
||||
When you specify content exclusions it has two effects:
|
||||
|
||||
- The content of the affected files will not be used by {% data variables.product.prodname_copilot %} to inform the code completion suggestions it makes in other files.
|
||||
- {% data variables.product.prodname_copilot %} code completion will not be available in the affected files.
|
||||
|
||||
{% data reusables.copilot.content-exclusions-delay %} For more information, see "[Propagating content exclusion changes to your IDE](#propagating-content-exclusion-changes-to-your-ide)."
|
||||
|
||||
### Limitations
|
||||
|
||||
{% data reusables.copilot.content-exclusion-limitations %}
|
||||
|
||||
### What can you exclude?
|
||||
|
||||
When you specify content exclusion in the settings for a repository, you can only exclude files in that repository.
|
||||
|
||||
When you specify content exclusion in the settings for an organization, you can exclude files in any Git-based repository hosted on {% data variables.product.prodname_dotcom_the_website %} or anywhere that can be accessed using any of the following syntaxes:
|
||||
|
||||
```text
|
||||
http[s]://host.xz[:port]/path/to/repo.git/
|
||||
|
||||
git://host.xz[:port]/path/to/repo.git/
|
||||
|
||||
[user@]host.xz:path/to/repo.git/
|
||||
|
||||
ssh://[user@]host.xz[:port]/path/to/repo.git/
|
||||
```
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** It's important to be aware that content can be excluded by the settings of any {% data variables.product.prodname_dotcom %} organization with a {% data variables.product.prodname_copilot_business_short %}{% ifversion ghec %} or {% data variables.product.prodname_copilot_enterprise_short %}{% endif %} subscription. Excluded files may be in a repository that is not owned by the organization in which the exclusion was defined. The excluded files may also be located in a Git-based repository that is not hosted on {% data variables.product.prodname_dotcom %}.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### Who is affected by a content exclusion setting?
|
||||
|
||||
{% data reusables.copilot.content-exclusions-scope %}
|
||||
|
||||
{% ifversion fpt %}All exclusions, whether they are defined in repository settings or in organization settings, apply to all members of the organization who have been granted a {% data variables.product.prodname_copilot_short %} seat as part of a {% data variables.product.prodname_copilot_business_short %} subscription.{% endif %}
|
||||
|
||||
{% ifversion ghec %}
|
||||
You can't specify content exclusions in the settings for an enterprise. However, all content exclusions defined in organization or repository settings apply to all members of the enterprise who have been granted a {% data variables.product.prodname_copilot_short %} seat as part of a {% data variables.product.prodname_copilot_business_short %} or {% data variables.product.prodname_copilot_enterprise_short %} subscription.
|
||||
|
||||
This means, for example, that if you are an admin of an organization that belongs to Enterprise X, you can set up an exclusion for files in any Git-based repositories, hosted on {% data variables.product.prodname_dotcom %} or elsewhere, and the exclusion will apply to anyone who gets their {% data variables.product.prodname_copilot_business_short %} or {% data variables.product.prodname_copilot_enterprise_short %} license from any organization in Enterprise X.
|
||||
|
||||
However, it's recommended that, where an exclusion is being defined for a {% data variables.product.prodname_dotcom %} repository, you should define this either in the settings of that repository or in the settings for the organization that owns the repository. This makes it easier to identify the exclusions that are in place for a repository than if you define the exclusions in the settings of another organization in the enterprise.
|
||||
{% endif %}
|
||||
|
||||
### Data sent to {% data variables.product.prodname_dotcom %}
|
||||
|
||||
After you configure content exclusion, the client (for example, the {% data variables.product.prodname_copilot_short %} extension for {% data variables.product.prodname_vscode_shortname %}) sends the current repository URL to the {% data variables.product.prodname_dotcom %} server so that the server can return the correct policy to the client. URLs sent to the server in this way are not logged anywhere.
|
||||
|
||||
## Configuring content exclusions for your repository
|
||||
|
||||
You can use your repository settings to specify content in your repository that {% data variables.product.prodname_copilot %} should ignore.
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
|
||||
1. In the "Code & automation" section of the side bar, click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}**.
|
||||
|
||||
If your repository inherits any exclusions from {%ifversion fpt %}its parent organization{% else %} organizations in the same enterprise{% endif %}, you'll see {%ifversion ghec %}one or more{% else %} a{% endif %} gray box{%ifversion ghec %}es{% endif %} at the top of the page containing details of these exclusions. You cannot edit these settings.
|
||||
|
||||
{%ifversion ghec %}
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note**: Exclusions that affect your repository can be defined in the settings of any organization in your {% data variables.product.prodname_dotcom %} enterprise, in addition to those defined in your repository settings.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
1. In the box under "Paths to exclude in this repository," enter the paths to files from which {% data variables.product.prodname_copilot_short %} should be excluded.
|
||||
|
||||

|
||||
|
||||
Use the format: `- "/PATH/TO/DIRECTORY/OR/FILE"`, with each path on a separate line. You can add comments by starting a line with `#`.
|
||||
|
||||
You can use fnmatch pattern matching notation to specify file paths. For more information, see "[File](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)" in the ruby-doc.org documentation.
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note**: Patterns are case insensitive.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### Example of paths specified in the repository settings
|
||||
|
||||
```yaml annotate
|
||||
# Ignore the `/src/some-dir/kernel.rs` file in this repository.
|
||||
- "/src/some-dir/kernel.rs"
|
||||
|
||||
# Ignore files called `secrets.json` anywhere in this repository.
|
||||
- "secrets.json"
|
||||
|
||||
# Ignore all files whose names begin `secret` anywhere in this repository.
|
||||
- "secret*"
|
||||
|
||||
# Ignore files whose names end `.cfg` anywhere in this repository.
|
||||
- "*.cfg"
|
||||
|
||||
# Ignore all files in or below the `/scripts` directory of this repository.
|
||||
- "/scripts/**"
|
||||
```
|
||||
|
||||
## Configuring content exclusions for your organization
|
||||
|
||||
You can use your organization settings to specify content, in any repository, that {% data variables.product.prodname_copilot %} should ignore.
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
|
||||
1. In the left sidebar, click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** then click **Content exclusion**.
|
||||
1. In the box under "Repositories and paths to exclude," enter details of where {% data variables.product.prodname_copilot_short %} should be excluded.
|
||||
|
||||
For each repository in which you want files to be excluded from {% data variables.product.prodname_copilot_short %}, enter a reference to the repository on one line, followed by paths to locations within the repository, with each path on a separate line. Use the following format:
|
||||
|
||||
```yaml
|
||||
REPOSITORY-REFERENCE:
|
||||
- "/PATH/TO/DIRECTORY/OR/FILE"
|
||||
- "/PATH/TO/DIRECTORY/OR/FILE"
|
||||
- ...
|
||||
```
|
||||
|
||||
Repositories can be referenced using various protocols. You can use any of the following syntaxes for `REPOSITORY-REFERENCE` and {% data variables.product.prodname_copilot_short %} will match them regardless of how the repository was cloned locally:
|
||||
|
||||
```text
|
||||
http[s]://host.xz[:port]/path/to/repo.git/
|
||||
|
||||
git://host.xz[:port]/path/to/repo.git/
|
||||
|
||||
[user@]host.xz:path/to/repo.git/
|
||||
|
||||
ssh://[user@]host.xz[:port]/path/to/repo.git/
|
||||
```
|
||||
|
||||
{% note %}
|
||||
|
||||
**Notes**:
|
||||
- The `user@` and `:port` parts of the `REPOSITORY-REFERENCE` are ignored in the calculation of which paths to ignore for a repository.
|
||||
- Each repository reference can contain a single `*` wildcard. For example, `https://github.com/octo-org/*` matches all repositories in the `octo-org` organization.
|
||||
- There is additional support for Azure DevOps URLs. For more information, see "[Azure DevOps `REPOSITORY-REFERENCE` support](#azure-devops-repository-reference-support)."
|
||||
|
||||
{% endnote %}
|
||||
|
||||
You can use fnmatch pattern matching notation to specify file paths. For more information, see "[File](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)" in the ruby-doc.org documentation.
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note**: Patterns are case insensitive.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### Example of repositories and paths in organization settings
|
||||
|
||||
```yaml annotate
|
||||
# Ignore all `.env` files at any path, in any repository.
|
||||
# This setting applies to all repositories, not just to those on GitHub.com.
|
||||
# This could also have been written on a single line as:
|
||||
#
|
||||
# "*": ["**/.env"]
|
||||
"*":
|
||||
- "**/.env"
|
||||
|
||||
# In the `octo-repo` repository in this organization:
|
||||
octo-repo:
|
||||
# Ignore the `/src/some-dir/kernel.rs` file.
|
||||
- "/src/some-dir/kernel.rs"
|
||||
|
||||
# In the `primer/react` repository on {% data variables.product.prodname_dotcom %}:
|
||||
https://github.com/primer/react.git:
|
||||
# Ignore files called `secrets.json` anywhere in this repository.
|
||||
- "secrets.json"
|
||||
# Ignore files called `temp.rb` in or below the `/src` directory.
|
||||
- "/src/**/temp.rb"
|
||||
|
||||
# In the `copilot` repository of any {% data variables.product.prodname_dotcom %} organization:
|
||||
git@github.com:*/copilot:
|
||||
# Ignore any files in or below the `/__tests__` directory.
|
||||
- "/__tests__/**"
|
||||
# Ignore any files in the `/scripts` directory.
|
||||
- "/scripts/*"
|
||||
|
||||
# In the `gitlab-org/gitlab-runner` repository on GitLab:
|
||||
git@gitlab.com:gitlab-org/gitlab-runner.git:
|
||||
# Ignore the `/main_test.go` file.
|
||||
- "/main_test.go"
|
||||
# Ignore any files with names beginning `server` or `session`, anywhere in this repository.
|
||||
- "{server,session}*"
|
||||
# Ignore any files with names ending `.md` or `.mk`, anywhere in this repository.
|
||||
- "*.m[dk]"
|
||||
# Ignore files directly within directories such as `packages` or `packaged`, anywhere in this repository.
|
||||
- "**/package?/*"
|
||||
# Ignore files in or below any `security` directories, anywhere in this repository.
|
||||
- "**/security/**"
|
||||
```
|
||||
|
||||
## Reviewing changes to the content exclusion settings
|
||||
|
||||
If you are an organization owner, you can check any changes that have been made to content exclusions.
|
||||
|
||||
1. Open the "Content exclusion" page in the settings for your organization ([described here](#configuring-content-exclusions-for-your-organization)), or the settings for a repository ([described here](#configuring-content-exclusions-for-your-repository)).
|
||||
1. Scroll to the bottom of the page.
|
||||
|
||||
You will see the name of the person who last changed the settings, and information about when they made this change.
|
||||
|
||||
1. Click the time of the last change.
|
||||
|
||||

|
||||
|
||||
{% note %}
|
||||
|
||||
**Note**: The time of the last change is only a link if you are an organization owner.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
The "Audit log" page for the organization is displayed, showing the most recently logged occurrences of the `copilot.content_exclusion_changed` action.
|
||||
|
||||
If you clicked through from a repository settings page, the audit log is filtered to show only changes to content exclusions for that repository.
|
||||
|
||||
1. Click the ellipsis (...) at the end of each entry to see more details.
|
||||
|
||||
If the "excluded_paths" entry is truncated, hover over the truncated value to show the full entry. This displays the content of the exclusion settings after the change was saved.
|
||||
|
||||

|
||||
|
||||
## Checking the effect of a settings change
|
||||
|
||||
When you change {% data variables.product.prodname_copilot_short %}'s content exclusions you can check that the setting blocks {% data variables.product.prodname_copilot_short %} from suggesting code in the specified files.
|
||||
|
||||
To confirm that {% data variables.product.prodname_copilot_short %} is disabled for a file, open the file in the editor and start typing a line of code, such as a comment. Normally, you would see a code completion suggestion from {% data variables.product.prodname_copilot_short %} as you type. If {% data variables.product.prodname_copilot_short %} is disabled by a content exclusion, code completion suggestions will not be offered, and the file's contents will not be used to generate suggestions in other files.
|
||||
|
||||
### Checking settings changes in your IDE
|
||||
|
||||
If you are working in {% data variables.product.prodname_vs %}, {% data variables.product.prodname_vscode_shortname %}, or a supported JetBrains IDE, the {% data variables.product.prodname_copilot_short %} icon indicates when {% data variables.product.prodname_copilot_short %} has been disabled by a content exclusion.
|
||||
|
||||
1. Open a file that you expect to be affected by your content exclusions.
|
||||
|
||||
If a {% data variables.product.prodname_copilot_short %} content exclusion applies to this file, the {% data variables.product.prodname_copilot_short %} icon in the status bar has a diagonal line through it.
|
||||
|
||||
1. Hover over this icon. A popup message tells you whether an organization or the parent repository disabled {% data variables.product.prodname_copilot_short %} for this file.
|
||||
|
||||

|
||||
|
||||
{% note %}
|
||||
|
||||
**Note**: In {% data variables.product.prodname_vs %} and {% data variables.product.prodname_vscode_shortname %} you can display the log for the {% data variables.product.prodname_copilot_short %} extension to see details of content exclusions without having to hover over the {% data variables.product.prodname_copilot_short %} icon. For more information, see "[AUTOTITLE](/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment?tool=vscode)."
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### Propagating content exclusion changes to your IDE
|
||||
|
||||
If you are working in Neovim, content exclusions are fetched from {% data variables.product.prodname_dotcom %} each time you open a file. However, if you are working in {% data variables.product.prodname_vs %}, {% data variables.product.prodname_vscode_shortname %}, or a supported JetBrains IDE, you may have to wait up to 30 minutes to see the effect of a settings change. Alternatively, you can manually reload the content exclusion settings into your IDE.
|
||||
|
||||
To reload content exclusions into {% data variables.product.prodname_vs %}, close and reopen the application.
|
||||
|
||||
To reload content exclusions into {% data variables.product.prodname_vscode_shortname %}:
|
||||
|
||||
1. Access the Command Palette. For example, by pressing <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd> (Mac) / <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux).
|
||||
1. Type: `reload`.
|
||||
1. Select **Developer: Reload Window**.
|
||||
|
||||
To reload content exclusions into your JetBrains IDE, either close and reopen the application, or log out of {% data variables.product.prodname_dotcom %} and then log back in, as follows.
|
||||
|
||||
1. Click the {% data variables.product.prodname_copilot_short %} icon in the status bar and select **Logout from {% data variables.product.prodname_dotcom %}**.
|
||||
1. The {% data variables.product.prodname_copilot_short %} icon in the status bar will now have a diagonal line through it. Click it and select **Login to {% data variables.product.prodname_dotcom %}**.
|
||||
1. The "Sign in to {% data variables.product.prodname_dotcom %}" message is displayed showing a device code. Click **Copy and Open**.
|
||||
1. On the "Device Activation" page, paste in the device code and click **Continue**.
|
||||
1. On the next page, click **Authorize {% data variables.product.prodname_copilot %} Plugin**.
|
||||
|
||||
### Azure DevOps `REPOSITORY-REFERENCE` support
|
||||
|
||||
Both the new (dev.azure.com) and old (visualstudio.com) formats for Azure DevOps are treated as equivalent in the `REPOSITORY-REFERENCE` syntax. You can use either host when specifying `REPOSITORY-REFERENCE`, and {% data variables.product.prodname_copilot_short %} will match them regardless of which host was used to clone the repository locally.
|
||||
|
||||
## Further reading
|
||||
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/reviewing-audit-logs-for-copilot-business)"
|
||||
- "[AUTOTITLE](/enterprise-cloud@latest/copilot/troubleshooting-github-copilot/troubleshooting-common-issues-with-github-copilot#github-copilot-content-exclusions-are-not-being-applied)"
|
||||
@@ -0,0 +1,91 @@
|
||||
---
|
||||
title: Granting access to Copilot for members of your organization
|
||||
shortTitle: Granting access
|
||||
intro: 'Grant access to {% data variables.product.prodname_copilot %} for some or all of the members of your organization.'
|
||||
permissions: 'Organization owners for organizations with a subscription to {% ifversion ghec %}{% data variables.product.prodname_copilot_enterprise_short %} or{% endif %} {% data variables.product.prodname_copilot_business_short %}.'
|
||||
versions:
|
||||
feature: copilot
|
||||
redirect_from:
|
||||
- /copilot/managing-github-copilot-in-your-organization/managing-access-for-copilot-in-your-organization
|
||||
- /copilot/managing-github-copilot-in-your-organization/managing-access-for-copilot-business-in-your-organization
|
||||
- /copilot/managing-copilot-for-business/managing-access-for-copilot-for-business-in-your-organization
|
||||
- /copilot/managing-copilot-business/managing-access-for-copilot-business-in-your-organization
|
||||
- /copilot/managing-github-copilot-in-your-organization/granting-access-to-copilot-for-members-of-your-organization
|
||||
topics:
|
||||
- Copilot
|
||||
---
|
||||
|
||||
## Configuring access to {% data variables.product.prodname_copilot %} in your organization
|
||||
|
||||
{% ifversion ghec %}After a {% data variables.product.prodname_dotcom %} enterprise owner enables {% data variables.product.prodname_copilot_enterprise_short %} or {% data variables.product.prodname_copilot_business_short %} for an organization, an owner of that organization can grant {% data variables.product.prodname_copilot %} access to members of their organization.{% else %}After setting up a {% data variables.product.prodname_copilot_business_short %} subscription, an organization owner grant {% data variables.product.prodname_copilot %} access to members of their organization.{% endif %}
|
||||
|
||||
Billing for {% data variables.product.prodname_copilot %} starts when you grant an organization member access, irrespective of when they first use {% data variables.product.prodname_copilot_short %}. If you grant an organization member access midway through a billing cycle, the cost is prorated for the remainder of the cycle. For more information, see "[AUTOTITLE](/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot)."
|
||||
|
||||
## Granting access to {% data variables.product.prodname_copilot %} for all current and future users in your organization
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.copilot.access-settings %}
|
||||
1. If the **Allow this organization to assign seats** button is displayed, click this button.
|
||||
1. If you see the message "Configure code policies to start adding seats":
|
||||
1. Click **Go to policies**.
|
||||
1. Set any policies that are currently set to "Unconfigured".
|
||||
1. In the left sidebar, click **Access**.
|
||||
1. Under {% ifversion ghec %}"{% data variables.product.prodname_copilot_enterprise_short %} is active in your organization" or {% endif %}"{% data variables.product.prodname_copilot_business_short %} is active in your organization," to enable {% data variables.product.prodname_copilot %} for all current and future users in your organization, select **Enabled For: All members of the organization**.
|
||||
1. In the "Confirm seats purchase" dialog, to confirm that you want to enable {% data variables.product.prodname_copilot %} for all current and future users in your organization, click **Purchase seats**.
|
||||
|
||||
## Granting access to {% data variables.product.prodname_copilot %} for specific users in your organization
|
||||
|
||||
{% ifversion ghec %}
|
||||
{% note %}
|
||||
|
||||
**Note:** You can automatically enable access for every member of a group in your identity provider (IdP) by synchronizing that group with a {% data variables.product.prodname_dotcom %} team, then giving that team access to {% data variables.product.prodname_copilot %}. For more information, see "[AUTOTITLE](/organizations/organizing-members-into-teams/synchronizing-a-team-with-an-identity-provider-group)."
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.copilot.access-settings %}
|
||||
1. If the **Allow this organization to assign seats** button is displayed, click this button.
|
||||
1. If you see the message "Configure code policies to start adding seats":
|
||||
1. Click **Go to policies**.
|
||||
1. Set any policies that are currently set to "Unconfigured".
|
||||
1. In the left sidebar, click **Access**.
|
||||
1. Under {% ifversion ghec %}"{% data variables.product.prodname_copilot_enterprise_short %} is active in your organization" or {% endif %}"{% data variables.product.prodname_copilot_business_short %} is active in your organization," to enable {% data variables.product.prodname_copilot %} for selected teams or users in your organization, select **Enabled For: Selected members**.
|
||||
1. If you are updating user access from the **Enabled For: All members of the organization** setting, in the "Confirm policy update" dialog, select how you want to start assigning access.
|
||||
- To unassign all members and then select those who should have access, select **Start from scratch**.
|
||||
- To keep all members who currently have access and then select those who should not have access, select **Renew seats**.
|
||||
1. Click **Assign {% data variables.product.prodname_copilot_short %} seats**.
|
||||
1. In the "Enable Copilot access for users and teams" dialog, click one of the two tabs.
|
||||
|
||||

|
||||
|
||||
- Click **Users and teams** to search for and add individual users or teams.
|
||||
|
||||
To search for a user, type their username or full name in the search bar. If you select a user who is not currently a member of your organization, they will be invited to join your organization when you click **Continue to purchase** followed by **Purchase seats**.
|
||||
|
||||
- Click **Upload CSV** to add users in bulk by uploading a CSV file.
|
||||
|
||||
To add members in bulk, click **Choose CSV to upload**, and then upload a CSV file including either the username or email address for each member you want to add, separated by a comma. The file can contain a mixture of usernames and email addresses.
|
||||
|
||||
{% warning %}
|
||||
|
||||
**Warning:** When you upload a CSV file, unless you're using {% data variables.product.prodname_emus %}, {% data variables.product.prodname_copilot %} will search all users on {% data variables.product.prodname_dotcom_the_website %} for matches. If the CSV includes users who are not members of your organization, they will be invited to join your organization when you click **Continue to purchase** followed by **Purchase seats**. This warning does not apply to accounts using {% data variables.product.prodname_emus %}.
|
||||
|
||||
{% endwarning %}
|
||||
|
||||
Review the list of users generated from your CSV file. Clear the selection of any users you do not want to add.
|
||||
|
||||
1. Click **Continue to purchase**, then click **Purchase seats**.
|
||||
|
||||
## Using the API to grant access to {% data variables.product.prodname_copilot %}
|
||||
|
||||
You can use {% data variables.product.prodname_dotcom %}'s REST API to grant access to {% data variables.product.prodname_copilot %} for teams, or specific users, in your organization. See "[Add teams to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-teams-to-the-copilot-subscription-for-an-organization)" and "[Add users to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-users-to-the-copilot-subscription-for-an-organization)."
|
||||
|
||||
## Further reading
|
||||
|
||||
- [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center)
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/managing-policies-and-features-for-copilot-in-your-organization)"
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization)"
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)"
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
title: Managing GitHub Copilot in your organization
|
||||
shortTitle: Manage for organization
|
||||
intro: 'Learn about {% data variables.product.prodname_copilot_cli %}, including use cases, best practices, and limitations.'
|
||||
versions:
|
||||
feature: copilot-in-the-cli
|
||||
redirect_from:
|
||||
- /copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization
|
||||
- /copilot/managing-github-copilot-in-your-organization
|
||||
topics:
|
||||
- Copilot
|
||||
- CLI
|
||||
children:
|
||||
- /subscribing-to-copilot-for-your-organization
|
||||
- /granting-access-to-copilot-for-members-of-your-organization
|
||||
- /managing-requests-for-copilot-access-in-your-organization
|
||||
- /revoking-access-to-copilot-for-members-of-your-organization
|
||||
- /reviewing-usage-data-for-github-copilot-in-your-organization
|
||||
- /managing-policies-and-features-for-copilot-in-your-organization
|
||||
- /configuring-content-exclusions-for-github-copilot
|
||||
- /reviewing-audit-logs-for-copilot-business
|
||||
- /canceling-copilot-for-your-organization
|
||||
---
|
||||
@@ -0,0 +1,66 @@
|
||||
---
|
||||
title: Managing policies and features for Copilot in your organization
|
||||
intro: 'Learn how to manage policies for {% data variables.product.prodname_copilot %} in your organization.'
|
||||
permissions: Organization owners
|
||||
product: '{% data reusables.gated-features.copilot-business-and-enterprise %}'
|
||||
versions:
|
||||
feature: copilot
|
||||
redirect_from:
|
||||
- /copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-business-in-your-organization
|
||||
- /copilot/managing-copilot-for-business/managing-policies-for-copilot-for-business-in-your-organization
|
||||
- /copilot/managing-copilot-business/managing-policies-for-copilot-business-in-your-organization
|
||||
- /copilot/managing-github-copilot-in-your-organization/managing-policies-and-features-for-copilot-in-your-organization
|
||||
topics:
|
||||
- Copilot
|
||||
shortTitle: Managing policies
|
||||
---
|
||||
|
||||
## About policies for {% data variables.product.prodname_copilot %}
|
||||
|
||||
Organization owners can set policies to govern how {% data variables.product.prodname_copilot %} can be used within the organization. For example, an organization owner can enable or disable the following {% data variables.product.prodname_copilot_short %} features{% ifversion ghec %} (unless an enterprise owner has blocked access to these features at the enterprise level){% endif %}:
|
||||
|
||||
{% ifversion ghec %}
|
||||
- {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %} (if your organization has a {% data variables.product.prodname_copilot_enterprise_short %} subscription){% endif %}
|
||||
- {% data variables.product.prodname_copilot_chat_short %} in the IDE
|
||||
- {% data variables.product.prodname_copilot_mobile_short %}
|
||||
- {% data variables.product.prodname_copilot_cli_short %}
|
||||
- Suggestions matching public code
|
||||
|
||||
The policy settings selected by an organization owner determine the behavior of {% data variables.product.prodname_copilot %} for all organization members that have been granted access to {% data variables.product.prodname_copilot_short %} through the organization.
|
||||
|
||||
{% ifversion ghec %}
|
||||
|
||||
{% data variables.product.prodname_copilot_short %} policies are also managed at the enterprise level. If your organization is part of an enterprise, and explicit settings have been selected at the enterprise level, you cannot override those settings at the organization level. For more information on managing policies at the enterprise level, see "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise)."
|
||||
|
||||
{% endif %}
|
||||
|
||||
### Policies for suggestion matching
|
||||
|
||||
Organization settings include an option to either allow or block code completion suggestions that match publicly available code. If you choose to block suggestions matching public code, {% data variables.product.prodname_copilot %} will check potential code completion suggestions and the surrounding code of about 150 characters against public code on {% data variables.product.prodname_dotcom %}. If there is a match, or a near match, the suggestion is not shown.
|
||||
|
||||
{% ifversion ghec %}If your enterprise admin has selected **No policy** 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, {% data variables.product.prodname_copilot %} will use the most restrictive policy.{% endif %}
|
||||
|
||||
## Enabling {% data variables.product.prodname_copilot_short %} features in your organization
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.copilot.policy-settings %}
|
||||
1. Use the dropdown options to the right of each feature to enable or disable that feature for your organization.
|
||||
|
||||
For example, to enable or disable suggestion matching, in the "Suggestions matching public code" dropdown, select **Allowed** or **Blocked**.
|
||||
|
||||
{% ifversion ghec %}
|
||||
|
||||
1. If your organization has a {% data variables.product.prodname_copilot_enterprise_short %} subscription and you enable {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}, two additional options are displayed. Depending on your enterprise settings, you may be able to change the settings for these options.
|
||||
|
||||
{% data reusables.copilot.policies-for-dotcom %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Further reading
|
||||
|
||||
- [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center)
|
||||
- "[AUTOTITLE](/copilot/using-github-copilot/finding-public-code-that-matches-github-copilot-suggestions)"{% ifversion ghec %}
|
||||
- "[AUTOTITLE](/copilot/github-copilot-enterprise/overview/enabling-github-copilot-enterprise-features)"{% endif %}
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Managing requests for copilot access in your organization
|
||||
shortTitle: Manage requests for access
|
||||
intro: 'Approve or deny requests for {% data variables.product.prodname_copilot_short %} access in your organization.'
|
||||
permissions: Organization owners
|
||||
product: '{% data variables.product.prodname_copilot_business_short %}'
|
||||
versions:
|
||||
feature: copilot
|
||||
topics:
|
||||
- Copilot
|
||||
---
|
||||
|
||||
As an owner of an organization, you can manage requests for {% data variables.product.prodname_copilot_for_business %} from your organization's settings. Additionally, {% data variables.product.prodname_dotcom %} sends you a weekly email with a summary of all pending requests.
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.organizations.org-list %}
|
||||
1. In the "Access" section of the sidebar, click {% octicon "bell" aria-label="The notifications bell" %} **Requests from members**.
|
||||
1. To accept the request and grant the member access to {% data variables.product.prodname_copilot_for_business %}, click **Buy {% data variables.product.prodname_copilot_business_short %}**.
|
||||
|
||||
All requests for {% data variables.product.prodname_copilot_for_business %} are grouped together under "{% data variables.product.prodname_copilot_business_short %}."
|
||||
@@ -0,0 +1,56 @@
|
||||
---
|
||||
title: Reviewing audit logs for Copilot Business
|
||||
shortTitle: Audit logs
|
||||
intro: 'Review the audit logs for your {% data variables.product.prodname_copilot_business_short %} subscription to understand what actions have been taken by which users.'
|
||||
redirect_from:
|
||||
- /copilot/managing-copilot-for-business/reviewing-your-organization-or-enterprises-audit-logs-for-copilot-for-business
|
||||
- /copilot/managing-copilot-business/reviewing-your-organization-or-enterprises-audit-logs-for-copilot-business
|
||||
- /copilot/managing-github-copilot-in-your-organization/reviewing-your-organization-or-enterprises-audit-logs-for-copilot-business
|
||||
- /copilot/managing-github-copilot-in-your-organization/reviewing-audit-logs-for-copilot-business
|
||||
versions:
|
||||
feature: copilot
|
||||
product: '{% data reusables.gated-features.copilot-audit-logs %}'
|
||||
permissions: 'Organization owners{% ifversion ghec %} and enterprise administrators{% endif %} can interact with the audit logs.'
|
||||
topics:
|
||||
- Copilot
|
||||
---
|
||||
|
||||
## About audit logs for {% data variables.product.prodname_copilot_business_short %}
|
||||
|
||||
You can use the audit logs for {% data variables.product.prodname_copilot_business_short %} to review actions taken by users in your organization{% ifversion ghec %} or enterprise{% endif %}, such as:
|
||||
|
||||
- Changes to {% data variables.product.prodname_copilot_short %} settings and policies
|
||||
- The addition or removal of seats from your {% data variables.product.prodname_copilot_business_short %} subscription
|
||||
|
||||
The audit log lists events related to your {% data variables.product.prodname_copilot_business_short %} subscription for the last 180 days.
|
||||
|
||||
{% ifversion ghec %}
|
||||
|
||||
## Viewing your enterprise's audit logs
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.audit-log-tab %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Viewing your organization's audit logs
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.audit_log.audit_log_sidebar_for_org_admins %}
|
||||
|
||||
## Searching audit log events for {% data variables.product.prodname_copilot_business_short %}
|
||||
|
||||
You can search for any of the {% data variables.product.prodname_copilot %} audit log events using the `action` qualifier and the `copilot` category. Some example searches that use this syntax are:
|
||||
|
||||
- `action:copilot`: Returns all {% data variables.product.prodname_copilot %} audit log events for your organization{% ifversion ghec %} or enterprise{% endif %}.
|
||||
- `action:copilot.cfb_seat_assignment_created`: Returns all audit log events related to a {% data variables.product.prodname_copilot_business_short %} seat being assigned to a new user.
|
||||
|
||||
For a full list of {% data variables.product.prodname_copilot %} audit log events, see{% ifversion ghec %} "[AUTOTITLE](/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise#copilot)" and{% endif %} "[AUTOTITLE](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization#copilot)."
|
||||
|
||||
## Further reading
|
||||
|
||||
{% ifversion ghec %}
|
||||
- "[AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise)"{% endif %}
|
||||
- "[AUTOTITLE](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization)"
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
title: Reviewing usage data for GitHub Copilot in your organization
|
||||
shortTitle: Usage data
|
||||
intro: 'Review {% data variables.product.prodname_copilot %} usage in your organization to make informed decisions about seat assignment.'
|
||||
permissions: 'Organization owners for organizations with a subscription to {% ifversion ghec %}{% data variables.product.prodname_copilot_enterprise_short %} or{% endif %} {% data variables.product.prodname_copilot_business_short %}.'
|
||||
versions:
|
||||
feature: copilot
|
||||
topics:
|
||||
- Copilot
|
||||
redirect_from:
|
||||
- /copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization
|
||||
---
|
||||
|
||||
## Reviewing usage data for {% data variables.product.prodname_copilot %} in your organization
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.copilot.access-settings %}
|
||||
1. At the top of the page, under "{% data variables.product.prodname_copilot %}," you can see an overview of your organization's {% data variables.product.prodname_copilot %} usage. You can see the number seats assigned through your {% ifversion ghec %}{% data variables.product.prodname_copilot_enterprise_short %} or {% endif %}{% data variables.product.prodname_copilot_business_short %} subscription, and the estimated monthly cost.
|
||||
|
||||
{% ifversion ghec %}
|
||||

|
||||
{% else %}
|
||||

|
||||
{% endif %}
|
||||
|
||||
1. For more detailed information, next to "Access management," click **Get report**.
|
||||
|
||||
{% data variables.product.prodname_dotcom %} generates a report for you, which you can download as a CSV file.
|
||||
|
||||
1. Alternatively, under "Access management," you can use the **Sort** options to sort the list of users by when they last used {% data variables.product.prodname_copilot %}.
|
||||
|
||||
## Using the API to retrieve assignment information
|
||||
|
||||
You can use {% data variables.product.prodname_dotcom %}'s REST API to get details about the assignment of {% data variables.product.prodname_copilot %} seats in your organization. See "[Get Copilot seat information and settings for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-information-and-settings-for-an-organization)," "[List all Copilot seat assignments for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-organization)," and "[Get Copilot seat assignment details for a user](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-assignment-details-for-a-user)."
|
||||
|
||||
## Further reading
|
||||
|
||||
- [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center)
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/granting-access-to-copilot-for-members-of-your-organization)."
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)"
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Revoking access to Copilot for members of your organization
|
||||
shortTitle: Revoking access
|
||||
intro: 'Remove access to {% data variables.product.prodname_copilot %} for some or all of the members of your organization.'
|
||||
permissions: 'Organization owners for organizations with a subscription to {% ifversion ghec %}{% data variables.product.prodname_copilot_enterprise_short %} or{% endif %} {% data variables.product.prodname_copilot_business_short %}.'
|
||||
versions:
|
||||
feature: copilot
|
||||
topics:
|
||||
- Copilot
|
||||
redirect_from:
|
||||
- /copilot/managing-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization
|
||||
---
|
||||
|
||||
## How revoking access affects billing
|
||||
|
||||
Revoking access takes effect from the start of the next billing cycle. If you remove a seat during a cycle, the user will have access to {% data variables.product.prodname_copilot_short %} for the remainder of the billing cycle. For more information, see "[AUTOTITLE](/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot)."
|
||||
|
||||
## Revoking access to {% data variables.product.prodname_copilot %} for your whole organization
|
||||
|
||||
{% data reusables.copilot.disable-copilot-organization %}
|
||||
|
||||
## Revoking access to {% data variables.product.prodname_copilot %} for specific users in your organization
|
||||
|
||||
Removing a user from the organization(s) that had granted them {% data variables.product.prodname_copilot %} access will automatically revoke their {% data variables.product.prodname_copilot %} access. Alternatively, you can revoke {% data variables.product.prodname_copilot %} access while preserving their organization membership.
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.copilot.access-settings %}
|
||||
1. Under {% ifversion ghec %}"{% data variables.product.prodname_copilot_enterprise_short %} is active in your organization" or {% endif %}"{% data variables.product.prodname_copilot_business_short %} is active in your organization," select **Enabled For: selected members**.
|
||||
|
||||
- In the "Confirm policy update" dialog, click **Renew seats**.
|
||||
|
||||
1. Under "Access management," in the search bar, type the member's username or full name.
|
||||
1. To remove the member from the list of users who have access to {% data variables.product.prodname_copilot %}, select the checkbox to the left of their username, then click **Cancel seat**.
|
||||
|
||||

|
||||
|
||||
1. In the "Confirm seat removal" dialog, click **Remove seats**.
|
||||
|
||||
## Using the API to revoke access to {% data variables.product.prodname_copilot %}
|
||||
|
||||
You can use {% data variables.product.prodname_dotcom %}'s REST API to revoke access to {% data variables.product.prodname_copilot %} for teams, or specific users, in your organization. For example, you might want to write a script to automatically revoke seats for organization members who have not been using {% data variables.product.prodname_copilot_short %}. See "[Remove teams from the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-teams-from-the-copilot-subscription-for-an-organization)" and "[Remove users from the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-users-from-the-copilot-subscription-for-an-organization)."
|
||||
|
||||
## Further reading
|
||||
|
||||
- [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center)
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/granting-access-to-copilot-for-members-of-your-organization)."
|
||||
- "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/reviewing-usage-data-for-github-copilot-in-your-organization)"
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
title: Subscribing to Copilot for your organization
|
||||
shortTitle: Subscribe organization
|
||||
intro: 'Organization owners can set up a {% data variables.product.prodname_copilot_business_short %} subscription for their organization.'
|
||||
permissions: Organization owners
|
||||
versions:
|
||||
feature: copilot
|
||||
topics:
|
||||
- Copilot
|
||||
redirect_from:
|
||||
- /billing/managing-billing-for-github-copilot/managing-your-github-copilot-business-subscription
|
||||
- /billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise
|
||||
---
|
||||
{% ifversion ghec %}
|
||||
>[!NOTE]
|
||||
> If your organization is part of an enterprise, you can gain {% data variables.product.prodname_copilot_short %} through your enterprise instead. See "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/subscribing-to-copilot-for-your-enterprise)" and "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/enabling-copilot-for-organizations-in-your-enterprise)."
|
||||
{% endif %}
|
||||
|
||||
{% data reusables.copilot.signup-procedure-org %}
|
||||
|
||||
## Next steps
|
||||
|
||||
- Configure policies for {% data variables.product.prodname_copilot_short %} in your organization. See "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/managing-policies-and-features-for-copilot-in-your-organization)."
|
||||
- Grant {% data variables.product.prodname_copilot_short %} access to some or all members of the organization. See "[AUTOTITLE](/copilot/managing-github-copilot-in-your-organization/managing-access-for-copilot-business-in-your-organization)."
|
||||
- For billing information, see "[AUTOTITLE](/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot-business-and-github-copilot-enterprise)" and "[AUTOTITLE](/billing/managing-your-github-billing-settings)."
|
||||
Reference in New Issue
Block a user