Answer: You restrict Gemini CLI logins to corporate domains by configuring a web proxy to intercept requests to google.com and add the X-GoogApps-Allowed-Domains HTTP header with a comma-separated list of approved Google Workspace domain names. Status: Confirmed Entry: tool/gemini-cli/admin-and-enterprise/restrict-login-domains Revision: 1 Digest: sha256:0e7322fe67e95276 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:27Z Last changed: 2026-11-13T03:17:27Z Last verified: 2026-11-20T12:50:51Z Next check: 2026-11-21T12:50:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of HTTP header | X-GoogApps-Allowed-Domains | [1] | 2026-11-20 intercepted domain | google.com | [1] | 2026-11-20 header value format | comma-separated list of your approved Google Workspace domain names | [1] | 2026-11-20 example header | X-GoogApps-Allowed-Domains: my-corporate-domain.com, secondary-domain.com | [1] | 2026-11-20 Sources: [1] Google. "Gemini CLI for the enterprise". https://geminicli.com/docs/cli/enterprise.md Role: primary. Accessed: 2026-11-20T12:50:51Z Quote: "add the `X-GoogApps-Allowed-Domains` HTTP header" (Supports: HTTP header) Quote: "Configure your web proxy to intercept all requests to `google.com`." (Supports: intercepted domain) Quote: "The value of the header should be a comma-separated list of your approved Google Workspace domain names." (Supports: header value format) Quote: "X-GoogApps-Allowed-Domains: my-corporate-domain.com, secondary-domain.com" (Supports: example header) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 1ad16859c14ea8134e9192516a53b09c4df38965dd637fac219e262ac35417d1 (captured 2026-11-13T03:17:26Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:27Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:50:51Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:50:51Z Last attempt: 2026-11-20T12:50:51Z Notes and limitations: Extracted automatically from a single official source (section "Restricting logins to corporate domains"). Related: https://latestn.com/tool/gemini-cli/agents-and-automation/activate-skill-arguments What argument does the activate_skill tool take in Gemini CLI? https://latestn.com/tool/gemini-cli/agents-and-automation/activate-skill-behavior What happens when Gemini CLI activates a skill? https://latestn.com/tool/gemini-cli/agents-and-automation/activate-skill-purpose What does the activate_skill tool do in Gemini CLI? https://latestn.com/tool/gemini-cli/admin-and-enterprise/go-no-go-decision What is the go/no-go decision process for a Gemini CLI release? https://latestn.com/tool/gemini-cli/admin-and-enterprise/mcp-server-allowlist How do I configure an allowlist of MCP servers for Gemini CLI enterprise users? https://latestn.com/tool/gemini-cli/admin-and-enterprise/policy-file-locations Where does Gemini CLI load policy files from, including system-wide admin policies? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/admin-and-enterprise/restrict-login-domains/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/admin-and-enterprise/restrict-login-domains POST: https://latestn.com/dispute/tool/gemini-cli/admin-and-enterprise/restrict-login-domains with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/admin-and-enterprise/restrict-login-domains?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I restrict Gemini CLI logins to corporate domains? Revision 1, last verified 2026-11-20T12:50:51Z. https://latestn.com/tool/gemini-cli/admin-and-enterprise/restrict-login-domains (accessed 2026-11-21T10:04:01Z). @misc{LatestN_tool_gemini_cli_admin_and_enterprise_restrict_login_domains_r1, title = {How do I restrict Gemini CLI logins to corporate domains?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/admin-and-enterprise/restrict-login-domains}}, note = {Revision 1; digest sha256:0e7322fe67e95276; last verified 2026-11-20T12:50:51Z; accessed 2026-11-21T10:04:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/admin-and-enterprise/restrict-login-domains