From 8c8d09196f3c46673d742798b24d2ec0277d3c38 Mon Sep 17 00:00:00 2001 From: Tomoko Tanaka <28242405+tallzeebaa@users.noreply.github.com> Date: Tue, 24 Nov 2026 08:36:05 +0000 Subject: [PATCH 1/3] Clarify organization model permissions under delegated default availability (#64829) Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> --- content/copilot/concepts/enterprise/default-availability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/copilot/concepts/enterprise/default-availability.md b/content/copilot/concepts/enterprise/default-availability.md index 6a95f01b0690..afb5ae9975fd 100644 --- a/content/copilot/concepts/enterprise/default-availability.md +++ b/content/copilot/concepts/enterprise/default-availability.md @@ -69,7 +69,7 @@ Policy state | Outcome ------------ | -------- **Enabled** | Any model labeled **Delegate to Default Policy** is automatically enabled for all your {% data variables.product.prodname_copilot_short %} users, and organizations or teams cannot disable it. **Disabled** | Any model labeled **Delegate to Default Policy** is automatically disabled for all your {% data variables.product.prodname_copilot_short %} users, and organizations or teams cannot enable it. -**Let organizations decide** | (Not available in enterprise teams mode.) Any model labeled **Delegate to Default Policy** is automatically available for organizations to enable or disable. In each organization, an eligible model follows the organization-level **Default availability for released models** policy if the organization has not explicitly configured it. +**Let organizations decide** | (Not available in enterprise teams mode.) An eligible model labeled **Delegate to Default Policy** at the enterprise level follows the organization-level **Default availability for released models** policy. Organization owners cannot configure that model individually unless the enterprise owner changes the model's status to **Delegate to organizations**. #### Policy states for models From e57576f547fce8a4bd4672b86c03ad5730f69f1f Mon Sep 17 00:00:00 2001 From: Linda Rodgers <102333422+lindarodgers@users.noreply.github.com> Date: Tue, 24 Nov 2026 08:42:16 +0000 Subject: [PATCH 2/3] Revise management console user account details (#64820) Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> --- ...naging-access-to-the-management-console.md | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/managing-access-to-the-management-console.md b/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/managing-access-to-the-management-console.md index 538e1073bb56..48ae2f42100f 100644 --- a/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/managing-access-to-the-management-console.md +++ b/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/managing-access-to-the-management-console.md @@ -15,27 +15,21 @@ category: You can also use the `gh es` {% data variables.product.prodname_cli %} extension to manage the root site administrator password, which controls access to the Management Console. For more information, see the [GH ES CLI usage documentation](https://github.com/github/gh-es/blob/main/USAGE.md#gh-es-access-set-password) and [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-command-line/administering-your-instance-using-the-github-cli). -## Types of {% data variables.enterprise.management_console %} accounts -There are two types of user accounts for the {% data variables.enterprise.management_console %} on a {% data variables.product.prodname_ghe_server %} instance. The root site administrator account authenticates with a password established during the initial setup of {% data variables.location.product_location %}. +## Root site administrator -The root site administrator can create additional accounts. +The root site administrator account authenticates with a password established during the initial setup of {% data variables.location.product_location %}. +The root site administrator password should be used for initial setup and recovery only, along with creating the first {% data variables.enterprise.management_console %} user account. Day-to-day administration should be performed with named {% data variables.enterprise.management_console %} accounts for proper attribution. -### Root site administrator +## {% data variables.enterprise.management_console %} user -Root site administrators have complete control over the {% data variables.enterprise.management_console %}. They can take every action in the {% data variables.enterprise.management_console %}, including creating and deleting {% data variables.enterprise.management_console %} user accounts. +{% data variables.enterprise.management_console %} users can perform all administrative tasks for {% data variables.location.product_location %} including the creation or deletion of {% data variables.enterprise.management_console %} user accounts. -Only the root site administrator can create and delete {% data variables.enterprise.management_console %} user accounts. - -### {% data variables.enterprise.management_console %} user - -{% data variables.enterprise.management_console %} users can perform most administrative tasks for {% data variables.location.product_location %}. For heightened security, {% data variables.enterprise.management_console %} users cannot create or delete {% data variables.enterprise.management_console %} user accounts. - -{% data variables.enterprise.management_console %} users, sometimes called operators, can perform basic administrative tasks for {% data variables.location.product_location %} in the {% data variables.enterprise.management_console %} and can add SSH keys to the {% data variables.enterprise.management_console %} to grant administrative access to the instance via SSH. +These users, sometimes called operators, can also add SSH keys to the {% data variables.enterprise.management_console %} to grant administrative access to the instance via SSH. ## Creating or deleting a user account for the {% data variables.enterprise.management_console %} -While signed into the {% data variables.enterprise.management_console %} as the root site administrator, you can create new {% data variables.enterprise.management_console %} user accounts. +While signed into the {% data variables.enterprise.management_console %}, you can create new {% data variables.enterprise.management_console %} user accounts. {% data reusables.enterprise_site_admin_settings.click-user-management %} 1. Click **Create user**. @@ -49,7 +43,6 @@ If you have configured email for notifications for {% data variables.location.pr If you have not configured email notifications for {% data variables.location.product_location %}, you must manually copy the {% data variables.enterprise.management_console %} invitation link and send it to the user. The user must set a password using the link before the user can access the {% data variables.enterprise.management_console %}. -{% data reusables.enterprise_site_admin_settings.sign-in-as-root-administrator %} {% data reusables.enterprise_site_admin_settings.click-user-management %} 1. To copy the invitation link, click {% octicon "link" aria-label="Copy invitation link" %} on any {% data variables.enterprise.management_console %} user account. 1. Send the invitation link to the {% data variables.enterprise.management_console %} user. The invitation link will lead the user through the final account setup steps. From 69bdbcf942fc1376c791e361c3755e0df312ff76 Mon Sep 17 00:00:00 2001 From: docs-bot <77750099+docs-bot@users.noreply.github.com> Date: Tue, 24 Nov 2026 09:44:58 +0000 Subject: [PATCH 3/3] Copilot CLI: Update setup and installation articles (#64841) Co-authored-by: github-actions[bot] Co-authored-by: hubwriter Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../authenticate-copilot-cli.md | 20 ++++++++--------- .../configure-copilot-cli.md | 14 ++++++------ .../set-up-copilot-cli/install-copilot-cli.md | 6 ++--- .../troubleshoot-copilot-cli-auth.md | 22 ++++++++++++------- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli.md b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli.md index b1f3ded93ee8..3a0567d66a6b 100644 --- a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli.md +++ b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli.md @@ -43,13 +43,13 @@ You can combine BYOK or Microsoft Entra authentication with {% data variables.pr ### Offline mode - If you set the `COPILOT_OFFLINE` environment variable to `true`, {% data variables.copilot.copilot_cli_short %} runs without contacting {% data variables.product.github %}'s servers. In offline mode: +If you set the `COPILOT_OFFLINE` environment variable to `true`, {% data variables.copilot.copilot_cli_short %} runs in offline mode: * No {% data variables.product.github %} authentication is attempted. -* The CLI only makes network requests to your configured BYOK provider. -* Telemetry is fully disabled. +* Model requests use your configured provider. +* First-party client-side telemetry is disabled. OpenTelemetry exports configured by you or your enterprise can still be sent. -Offline mode is **only fully air-gapped** if your BYOK provider is local or otherwise within the same isolated environment (for example, a model running on-premises with no external network access). If `COPILOT_PROVIDER_BASE_URL` points to a remote or internet-accessible endpoint, prompts and code context will still be sent over the network to that provider. Without offline mode, even when using BYOK without {% data variables.product.github %} authentication, telemetry is still sent normally. +Offline mode does not enforce network isolation. For an air-gapped setup, your model provider and any configured MCP servers, telemetry exporters, and shell commands must remain within the isolated environment. If `COPILOT_PROVIDER_BASE_URL` points to a remote or internet-accessible endpoint, prompts and code context will still be sent over the network to that provider. Without offline mode, even when using BYOK without {% data variables.product.github %} authentication, telemetry is still sent normally. ### Supported token types @@ -70,7 +70,7 @@ By default, the CLI stores your OAuth token in your operating system's keychain | Windows | Credential Manager | | Linux | libsecret (GNOME Keyring, KWallet) | -If the system keychain is unavailable—for example, on a headless Linux server without `libsecret` installed—the CLI prompts you to store the token in a plaintext configuration file at `~/.copilot/config.json`. +If the system keychain is unavailable—for example, on a headless Linux server without `libsecret` installed—the CLI prompts you to store the token in a plaintext configuration file, by default at `~/.copilot/config.json`. When you run a command, {% data variables.copilot.copilot_cli_short %} checks for credentials in the following order: @@ -81,7 +81,7 @@ When you run a command, {% data variables.copilot.copilot_cli_short %} checks fo 1. GitHub CLI (`gh auth token`) fallback > [!NOTE] -> * An environment variable silently overrides a stored OAuth token. If you set `GH_TOKEN` for another tool, the CLI uses that token instead of the OAuth token from `copilot login`. To avoid unexpected behavior, unset environment variables you do not intend the CLI to use. There is one exception: in {% data variables.product.prodname_github_codespaces %}, the `GITHUB_TOKEN` that is injected automatically does not take precedence over an account you signed in with using `/login`. A `GITHUB_TOKEN`, `COPILOT_GITHUB_TOKEN`, or `GH_TOKEN` that you export explicitly still does. +> * An environment variable silently overrides a stored OAuth token. If you set `GH_TOKEN` for another tool, the CLI uses that token instead of the OAuth token from `copilot login`. To avoid unexpected behavior, unset environment variables you do not intend the CLI to use. There is one exception: in {% data variables.product.prodname_github_codespaces %}, when `GITHUB_TOKEN` has a `ghu_` or `ghs_` prefix and neither `COPILOT_GITHUB_TOKEN` nor `GH_TOKEN` has a nonempty value, a stored `/login` account takes precedence. This applies even if you set `GITHUB_TOKEN` yourself. > * When you configure BYOK provider environment variables (for example, `COPILOT_PROVIDER_BASE_URL`, `COPILOT_PROVIDER_API_KEY`), {% data variables.copilot.copilot_cli_short %} uses these for AI model requests regardless of your {% data variables.product.github %} authentication status. {% data variables.product.github %} tokens are only needed for {% data variables.product.github %}-hosted features. ## Authenticating with OAuth @@ -96,7 +96,7 @@ OAuth is the default authentication method for interactive use. You can authenti /login ``` -1. Select the account you want to authenticate with. For {% data variables.product.prodname_ghe_cloud %} with data residency, enter the hostname of your instance. If you select **Your organization (Microsoft Entra)**, {% data variables.copilot.copilot_cli_short %} automatically signs you in with your existing Microsoft Entra account. +1. Select the account you want to authenticate with. For {% data variables.product.prodname_ghe_cloud %} with data residency, enter the hostname of your instance when prompted. If you select **Your organization (Microsoft Entra)**, follow the prompts to sign in, then skip the remaining steps. ```text What account do you want to log into? @@ -125,7 +125,7 @@ OAuth is the default authentication method for interactive use. You can authenti Press any key to copy to clipboard and open browser... ``` - Navigate to the verification URL at `https://github.com/login/device` if your browser did not open automatically, then paste the one-time code in the field on the page. + Navigate to the verification URL displayed in the CLI if your browser did not open automatically, then paste the one-time code in the field on the page. 1. If your organization uses SAML SSO, click **Authorize** next to each organization you want to grant access to. 1. Review the requested permissions and click **Authorize GitHub Copilot CLI**. @@ -202,7 +202,7 @@ Your Microsoft Entra tenant must use OIDC to connect to {% data variables.produc ### Signing in with your organization 1. Run `/login` in {% data variables.copilot.copilot_cli_short %}. -1. Select **Your organization (Microsoft Entra)**. {% data variables.copilot.copilot_cli_short %} automatically signs you in with your existing Microsoft Entra account. +1. Select **Your organization (Microsoft Entra)** and follow the prompts to select an account or sign in. After you sign in, models permitted by your entitlements appear in the `/model` picker. For more information on how this works with Microsoft 365 Copilot, see [AUTOTITLE](/copilot/concepts/copilot-surfaces/copilot-cli#using-microsoft-365-copilot-models). @@ -241,7 +241,7 @@ To add another account, run `copilot login` from a new terminal session, or run ## Signing out and removing credentials -To sign out, type `/logout` at the {% data variables.copilot.copilot_cli_short %} prompt. This removes the locally stored token but does not revoke it on {% data variables.product.github %}. +To sign out of an account you added with `/login` or `copilot login`, type `/logout` at the {% data variables.copilot.copilot_cli_short %} prompt. This removes the locally stored token but does not revoke it on {% data variables.product.github %}. The command does not remove environment-variable tokens or sign out of {% data variables.product.prodname_cli %}. These credential sources can be configured at the same time, so signing out of one may leave another available when you restart the CLI. To stop the CLI from using those sources, exit the CLI, unset every configured `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` environment variable, and run `gh auth logout` if you also use a {% data variables.product.prodname_cli %} account. To revoke the OAuth app authorization on {% data variables.product.github %} and prevent it from being used elsewhere, follow these steps. diff --git a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli.md b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli.md index d14e76276003..926cc9fd793e 100644 --- a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli.md +++ b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli.md @@ -75,19 +75,19 @@ In manual approval mode, {% data variables.product.prodname_copilot_short %} ask Create a new file called README.md with a project description ``` -1. If the tool is not already allowed, choose from the approval options: +1. If the tool is not already allowed, choose from the available approval options: - * `1. Yes` + * `Yes` Choose this option to allow {% data variables.product.prodname_copilot_short %} to run this particular command, this time only. The next time it needs to use this tool, it will ask you again. - * `2. Yes, and approve TOOL for the rest of the running session` + * `Yes, and don't ask again ...` - Choose this option to allow {% data variables.product.prodname_copilot_short %} to use this tool for the duration of the currently running session. It will ask for your approval again in new sessions, or if you resume the current session in the future. If you choose this option, you are allowing {% data variables.product.prodname_copilot_short %} to use this tool in any way it thinks is appropriate. + Choose this option to allow the specified commands, MCP tool, or file operations in the current repository or directory without asking again, including in future sessions. Depending on the request, you may instead see an option to approve the tool for the rest of the running session. - For example, if {% data variables.product.prodname_copilot_short %} asks you to allow it to run the command `rm ./this-file.txt`, and you choose option 2, then {% data variables.product.prodname_copilot_short %} can run any `rm` command (for example, `rm -rf ./*`) during the current run of this session, without asking for your approval. + For example, if {% data variables.product.prodname_copilot_short %} asks you to allow it to run the command `rm ./this-file.txt`, and you approve `rm` for the repository, then {% data variables.product.prodname_copilot_short %} can run any `rm` command (for example, `rm -rf ./*`) while working in that repository, without asking for your approval. - * `3. No, and tell Copilot what to do differently (Esc)` + * `No, and tell Copilot what to do differently (Esc)` Choose this option to cancel the proposed command and instruct {% data variables.product.prodname_copilot_short %} to try a different approach. @@ -169,7 +169,7 @@ Use `'write'` to allow or deny tools—other than shell commands—permission to #### Allowing or denying MCP server tools -Use `'MCP_SERVER_NAME'` to allow or deny a specific tool from the specified MCP server. +Use `'MCP_SERVER_NAME(TOOL_NAME)'` to allow or deny a specific tool from the specified MCP server. * For example, to prevent {% data variables.product.prodname_copilot_short %} from using the tool called `tool_name` from the MCP server called `My-MCP-Server`, use: diff --git a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli.md b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli.md index 8d24a43c3dee..a37ae87fea9c 100644 --- a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli.md +++ b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli.md @@ -27,8 +27,8 @@ To find out about {% data variables.copilot.copilot_cli_short %} before you inst ## Prerequisites -* **An active {% data variables.product.prodname_copilot %} subscription**. See [{% data variables.product.prodname_copilot_short %} plans](https://github.com/features/copilot/plans?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=docs-article-installing-cli-plans&utm_medium=docs&utm_campaign=ignite-nov-2026). -* (On Windows) **PowerShell** v6 or higher +* **An active {% data variables.product.prodname_copilot %} subscription**, unless you use your own model provider or sign in with an eligible Microsoft Entra account. Your model provider may charge separately for usage. Microsoft Entra sign-in is currently supported only on Windows and macOS. For account requirements, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli). +* (On Windows) **PowerShell**. {% data variables.copilot.copilot_cli_short %} can also use Windows PowerShell 5.1. If you have access to {% data variables.product.prodname_copilot %} via your organization or enterprise, you cannot use {% data variables.copilot.copilot_cli_short %} if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies). @@ -113,7 +113,7 @@ Download the executable for your platform, unpack it, and run. ## Authenticating with {% data variables.copilot.copilot_cli_short %} -On first launch, if you're not currently logged in, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate with your {% data variables.product.github %} account or your Microsoft Entra account. For more information on the authentication process, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli). +On first launch, if you're not currently logged in and no custom model provider is configured, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate with your {% data variables.product.github %} account or your Microsoft Entra account. For more information on the authentication process, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli). ### Authenticating with a {% data variables.product.pat_generic %} diff --git a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth.md b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth.md index e229d3cc8655..cedc990b72c2 100644 --- a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth.md +++ b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth.md @@ -53,13 +53,19 @@ If you see a message indicating that you’re not logged in, log in with `gh aut #### Check whether an authentication environment variable is set -If you are using an environment variable, check whether the `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` environment variable is set: +If you are using an environment variable, check whether `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` is set without displaying the token: - ```bash copy - echo $COPILOT_GITHUB_TOKEN - ``` +```bash copy +for name in COPILOT_GITHUB_TOKEN GH_TOKEN GITHUB_TOKEN; do + if printenv "$name" | grep -q .; then + echo "$name is set" + else + echo "$name is unset or empty" + fi +done +``` -If the command prints nothing, the variable is not set. Set the variable to a valid token. To generate a token, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli#authenticating-with-environment-variables). +If the variable you intend to use is unset or empty, set it to a valid token. To generate a token, see [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli#authenticating-with-environment-variables). For example: ```bash copy export COPILOT_GITHUB_TOKEN=PERSONAL_ACCESS_TOKEN @@ -102,7 +108,7 @@ The token was revoked, has expired, or was created without the required permissi ### Fix -Review the token's status and permissions on {% data variables.product.prodname_dotcom %}. The token must be a {% data variables.product.pat_v2 %} owned by your **personal account** (not an organization) with the **{% data variables.product.prodname_copilot_short %} Requests** permission. Generate a new token with the required permissions if necessary. +Review the token's status and permissions on {% data variables.product.prodname_dotcom %}. If you use a {% data variables.product.pat_generic %}, it must be a {% data variables.product.pat_v2 %} owned by your **personal account** (not an organization) with the **{% data variables.product.prodname_copilot_short %} Requests** permission. Generate a new token with the required permissions if necessary. If the failed token comes from `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN`, replace or unset that environment variable and restart the CLI before trying another authentication method. An environment token can continue to take precedence over a saved `/login` account. For other authentication methods, sign in again using the method you originally used. ## {% data variables.product.pat_classic_caps %} rejected @@ -183,7 +189,7 @@ Follow the steps for your operating system to restore secure credential storage. On macOS, confirm Keychain Access app is available, and you can unlock your login keychain. On Windows, confirm Credential Manager is available, and you can access the Windows Vault. -If you can’t access the system credential manager, use plaintext storage (if prompted) or authenticate using an environment variable token, then rerun `/login` or `copilot login`. +If you can’t access the system credential manager, use plaintext storage if prompted. Alternatively, set an environment variable token before starting the CLI. #### Linux @@ -219,4 +225,4 @@ Multiple accounts are stored, or an environment variable is overriding the store ### Fix -To switch accounts, use `/user switch` at the CLI prompt, or sign out with `/logout` and run `/login` with the correct account. +To switch accounts, use `/user switch` at the CLI prompt, or sign out with `/logout` and run `/login` with the correct account. If an environment variable is overriding the account you want to use, exit the CLI, update or unset the variable, and restart the CLI.