Answer: Use the policy API to manage Global settings; to manage Local or Codex Cloud settings, use the Agent Security UI. Existing Global API workflows remain available after migration, so test your scripts and Terraform integrations and confirm that policy assignments and ordering are unchanged. Status: Confirmed Entry: tool/codex/admin-and-enterprise/policy-api-terraform Revision: 1 Digest: sha256:434da1b8270599ad (changes whenever the content changes) Timeline: Created: 2026-11-13T03:49:12Z Last changed: 2026-11-13T03:49:12Z Last verified: 2026-11-20T13:37:05Z Next check: 2026-11-21T13:37:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Global settings management | policy API | [1] | 2026-11-20 Local or Codex Cloud settings management | Agent Security UI | [1] | 2026-11-20 Post-migration availability | Existing Global API workflows remain available after migration. | [1] | 2026-11-20 Verification step | confirm that policy assignments and ordering are unchanged | [1] | 2026-11-20 Unaffected by migration | SCIM membership synchronization or RBAC roles | [1] | 2026-11-20 Sources: [1] OpenAI. "Agent Security". https://learn.chatgpt.com/docs/enterprise/agent-security.md Role: primary. Accessed: 2026-11-20T13:37:05Z Quote: "Use the policy API to manage Global settings." (Supports: Global settings management) Quote: "To manage Local or Codex Cloud settings, use the Agent Security UI." (Supports: Local or Codex Cloud settings management) Quote: "Existing Global API workflows remain available after migration." (Supports: Post-migration availability) Quote: "Test your scripts and Terraform integrations, and confirm that policy assignments and ordering are unchanged." (Supports: Verification step) Quote: "Policy migration does not change SCIM membership synchronization or RBAC roles." (Supports: Unaffected by migration) Snapshot SHA-256: 8284224d6496eaca8fb9fe4577e27f54e141d7137604d1ffa76a5f1a6094e067 (captured 2026-11-13T03:49:08Z) 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:49:12Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:37:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:37:05Z Last attempt: 2026-11-20T13:37:05Z Notes and limitations: Extracted automatically from a single official source (section "Policy API and Terraform"). Related: https://latestn.com/tool/codex/admin-and-enterprise/prisma-airs-requirements What do I need before enabling Prisma AIRS for Codex? https://latestn.com/tool/codex/admin-and-enterprise/restrict-sign-in-to-company-workspace How do I restrict Codex sign-in to my company workspace? https://latestn.com/tool/codex/admin-and-enterprise/review-codex-analytics How do I review Codex analytics for my workspace? https://latestn.com/tool/codex/admin-and-enterprise/gateway-rollout-prerequisites What are the prerequisites for rolling out a Codex gateway to my organization? https://latestn.com/tool/codex/admin-and-enterprise/model-access-differs-by-surface Why does a model enabled in my ChatGPT workspace not appear in Codex CLI or the IDE extension? https://latestn.com/tool/codex/admin-and-enterprise/open-usage-insights How do I open Usage Insights for ChatGPT Work and Codex in the Admin Console? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:49:12Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/admin-and-enterprise/policy-api-terraform/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/codex/admin-and-enterprise/policy-api-terraform POST: https://latestn.com/dispute/tool/codex/admin-and-enterprise/policy-api-terraform with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/admin-and-enterprise/policy-api-terraform?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I manage Codex Agent Security policies with the Policy API and Terraform? Revision 1, last verified 2026-11-20T13:37:05Z. https://latestn.com/tool/codex/admin-and-enterprise/policy-api-terraform (accessed 2026-11-21T09:58:03Z). @misc{LatestN_tool_codex_admin_and_enterprise_policy_api_terraform_r1, title = {How do I manage Codex Agent Security policies with the Policy API and Terraform?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/admin-and-enterprise/policy-api-terraform}}, note = {Revision 1; digest sha256:434da1b8270599ad; last verified 2026-11-20T13:37:05Z; accessed 2026-11-21T09:58:03Z} } 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/codex/admin-and-enterprise/policy-api-terraform