Join our Newsletter — 33% off our NHI Course
Home› Guides› OpenAI Platform Organisation and Project Security Guide: Roles,…
Guide AI Platforms

OpenAI Platform Organisation and Project Security Guide: Roles, Project Keys, Data Controls and Audit Logs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 18 November 2026 12 min read
On this page

Securing an OpenAI Platform organisation means getting four things right at once: who holds organisation and project roles, which keys and service accounts each project trusts, how long your data is retained, and whether you are watching the audit log. API keys get most of the attention, but the organisation and project structure around them decides how far a leaked key, a departed employee or a misconfigured project can reach. This guide walks through that structure for platform administrators and security teams: organisation and project roles, service accounts, key permissions, project limits and model access, data retention controls, and the Audit Logs API.

Key handling itself, including storage, rotation and leak response, is covered in the OpenAI API Keys Security Guide, which this page does not repeat. For a hands-on key review, see How to audit OpenAI and Anthropic organisation API keys.

This is an independent guide from NHI Mgmt Group, based on OpenAI's public documentation as of November 2026. It is not sponsored or reviewed by OpenAI. Product features change, so confirm settings against OpenAI's current documentation.

Key takeaways

  • Use projects as security boundaries. Each production workload should have its own project, its own service account and its own limits, rather than sharing the Default project.
  • Keep organisation Owners to a small, named group. Owners can see all projects, users and API keys, set billing controls and archive projects.
  • Use service account keys for production. User-owned project keys are disabled when the user leaves the project or organisation, which breaks systems and hides ownership.
  • Change key permissions from the default of All to Restricted or Read Only wherever the workload allows, and restrict which models each project can call.
  • Set a monthly budget per project. OpenAI documents it as a hard cap that blocks API requests once exceeded in a UTC calendar month, which limits the cost of a stolen key.
  • Know your retention settings. Abuse monitoring logs are kept for up to 30 days by default, and several endpoints keep application state until you delete it.
  • Pull the Audit Logs API into your SIEM and alert on key creation, role changes, service account creation and failed logins.

How organisations and projects fit together

OpenAI's project management article describes the organisation as the top-level account and projects as the way to organise work within it, scoping access, limits, service accounts and usage tracking. Every organisation has a Default project that cannot be deleted and inherits the organisation's settings. Only organisation owners can create projects, up to 1,000 per organisation.

From a security perspective this gives a two-level model:

  • Organisation level: membership, organisation roles, billing, organisation-wide data retention policy and the audit log.
  • Project level: project members and roles, service accounts, API keys, rate and usage limits, model access and per-project retention choices.

A sensible structure (NHI Mgmt Group recommendation) is one project per application and environment, for example "support-bot-prod" and "support-bot-dev", with the Default project left empty of production workloads. That keeps keys, limits and usage data separate, so a problem in one workload does not spread to another.

Organisation and project roles

The documented roles are short lists, which makes them easy to review.

LevelRoleWhat OpenAI documents it can do
OrganisationOwnerView all projects, users and API keys; set billing controls; grant usage visibility; archive projects; create projects
OrganisationReaderRun inference, use resources and create keys; can be added to projects; cannot create projects or manage users
ProjectOwnerAdd and remove members, change member roles, rename and archive the project, plus all Member abilities
ProjectMemberRun inference, use project resources and create project-level keys

Two points stand out. First, organisation Owner is a highly privileged role: it covers billing, all projects and visibility of all keys. Second, both Reader at organisation level and Member at project level can create keys. Every person you add to a project can therefore mint new credentials for it.

Recommended controls:

  • Limit organisation Owners to two or three named administrators, and review the list monthly.
  • Add people to projects only when they need to work on that workload, and remove them when they move on.
  • Use your identity provider and single sign-on for membership where your plan supports it, so that leavers lose access when their corporate account is disabled. The audit log records SCIM events such as scim.enabled, which indicates directory provisioning is available to some organisations.
  • Review project Owners per project, because they control membership and can archive the project.

Service accounts and project keys

OpenAI describes service accounts as pseudo-users for system access, scoped to a project or the organisation. Only organisation and project owners can create them. Their secret key is shown once at creation. By default they have read and write access to all project resources, which can be changed in the project's API key settings, and a project-scoped service account cannot be used outside its project.

Project API keys, by contrast, belong to individual users and are disabled if that user leaves the project or organisation. OpenAI recommends service account keys for production because owners can manage them more easily.

That distinction matters for non-human identity management:

  • User keys tie a production system to a person. When that person leaves, the system stops working, and while they stay, their personal access and the system's access are mixed together in logs.
  • Service account keys represent the workload. They need their own owner, purpose, rotation schedule and inventory record, as with any other machine credential.

Recommended practice:

  • Create one service account per workload per project, named after the workload.
  • Store the secret in a secrets manager immediately, since it is shown only once.
  • Do not use user keys in deployed code, CI pipelines or shared notebooks.
  • Avoid organisation-scoped service accounts unless a workload genuinely spans projects.
  • Record each service account in your NHI inventory with an owner and a review date.

Key permissions and model access

OpenAI documents three permission levels for API keys:

  • All: full access, the default.
  • Restricted: None, Read or Write chosen for each endpoint.
  • Read Only: read access to all endpoints.

Most production workloads use a small number of endpoints. A chat assistant might need only responses or chat completions, while a batch embedding job needs only embeddings. Setting the key to Restricted and allowing only those endpoints limits what an attacker can do with a stolen key: they cannot, for example, list or download files, manage fine-tuning jobs or read stored assistants if those endpoints are set to None.

Projects can also restrict models. Under Model Usage on a project's Limits page, administrators choose which models the project can use and can set rate limits per model. Restricting models prevents a stolen key being used to run your most expensive models, and keeps workloads on models you have reviewed.

Limits and budgets as security controls

Cost abuse is one of the most common outcomes of a leaked AI key. OpenAI's project limits help contain it:

  • Rate and usage limits are set per project and must be at or below organisation limits.
  • A monthly budget acts as a hard cap. Once a project exceeds it in a UTC calendar month, its API requests are blocked.
  • A notification threshold emails owners when usage passes a set amount.
  • If project limits add up to more than the organisation limit, projects can hit the organisation limit and affect each other.

Recommended settings (NHI Mgmt Group guidance): set a notification threshold well below the budget so you are warned early, set budgets based on expected usage with modest headroom, and make sure the sum of project limits stays within the organisation limit so that abuse of one project cannot starve production. Route the notification emails to a monitored shared mailbox, not only to individual owners.

Data controls and retention

OpenAI's data controls guide sets out how API data is retained. Facts to know:

  • Abuse monitoring logs are kept for up to 30 days by default, unless law requires longer or retention is needed to protect the services or third parties.
  • Since 1 March 2023, API data is not used to train or improve OpenAI models unless you explicitly opt in.
  • Zero Data Retention (ZDR) and Modified Abuse Monitoring (MAM) both exclude customer content from abuse monitoring logs. Both need prior approval from OpenAI. ZDR also forces store to false on responses and chat completions.
  • Once approved, administrators set an organisation-wide policy under Settings, Organization, Data controls, Data Retention, and then choose for each project whether to inherit the default, use ZDR, use MAM or use None.

Application state by endpoint

Retention of abuse logs is separate from application state, which is data you or your application ask OpenAI to keep. The guide lists, among others:

  • Responses: stored for 30 days by default or when store is true; background mode keeps data for about 10 minutes for polling.
  • Assistants, threads and vector stores: kept until deleted, with Assistants-related objects removed 30 days after deletion; not ZDR eligible.
  • Files: kept until deleted, or deleted automatically if you set expires_after; not ZDR eligible.
  • Conversations, agents, fine-tuning, evals and batches: kept until deleted; not ZDR eligible.

The guide also notes that MCP servers and other third-party services follow their own retention policies. For security teams this means a ZDR approval does not, on its own, guarantee that no data persists. Review which endpoints each project uses, set store deliberately, use expires_after for files, and delete vector stores and files when they are no longer needed. Use the Restricted key permissions above to stop workloads calling stateful endpoints they do not need. For agent workloads, see Securing OpenAI Agents SDK and Responses API.

Audit logs

The Audit Logs API reference documents GET /organization/audit_logs, which lists user actions and configuration changes within the organisation. The reference lists around 149 event types, grouped by area, including:

  • API keys: api_key.created, api_key.updated, api_key.deleted
  • Logins: login.succeeded, login.failed
  • Projects and users: project.created, user.added, user.deleted
  • Roles and service accounts: role.assignment.created, service_account.created
  • Other: certificate.created, invite.sent, scim.enabled

Each event carries an id, an effective_at Unix timestamp, a type, an optional actor and a detail object for the event type. The actor is either a session, which includes an IP address and user, or an API key, which includes the key ID, whether it is a user or service account key, and the associated principal. The reference also notes that admin actions taken via Admin API keys are associated with the Default project, which is worth remembering when you filter by project. Check the reference for the authentication and query parameters before you build a collector.

What to alert on

Recommended detections (NHI Mgmt Group guidance):

  • api_key.created in a production project outside a change window, or by a user rather than an automation identity.
  • api_key.updated that widens permissions, which you can see in the scopes on the detail object.
  • role.assignment.created granting Owner at organisation or project level.
  • service_account.created in any project, so that every new machine identity is reviewed.
  • Repeated login.failed events, or login.succeeded from unfamiliar IP addresses.
  • user.added and invite.sent for addresses outside your corporate domains.
  • Any organization.updated event, including changes to logging settings.

Poll the API on a schedule, store events in your SIEM with the longer retention your policy requires, and correlate actor IP addresses with your identity provider logs. MITRE ATT&CK Valid Accounts: Cloud Accounts (T1078.004) describes the attacker behaviour these detections are meant to catch.

Offboarding and project lifecycle

Projects cannot be deleted, so usage and billing history are preserved. Owners can archive a project after typing its name to confirm; archiving is permanent and archived projects appear on an Archived tab. Recommended lifecycle steps:

  • When a workload is retired, revoke its service account keys first, then archive the project.
  • When a person leaves, remove them from the organisation and check whether any production system used their user key; those keys will be disabled.
  • Review projects quarterly for ones with no recent usage, and archive them once owners confirm.
  • Confirm that retained application state, such as files and vector stores, has been deleted before archiving where your data policy requires it.

Common failure patterns

  • Everything in the Default project. All workloads share one set of limits and keys, so one leaked key exposes everything and budgets cannot isolate abuse.
  • User keys in production. A developer's personal key runs a service, which stops when they leave and blurs attribution while they stay.
  • Default All permissions. Keys can reach every endpoint, including files and stored objects, when the workload only needed one.
  • Too many Owners. Organisation Owner is handed out for convenience, giving many people visibility of all keys and billing.
  • Assuming ZDR covers everything. Teams with ZDR still keep files, vector stores and assistants that are not ZDR eligible.
  • No budget cap. A stolen key runs up costs until someone notices the invoice.
  • Audit log never collected. Key creation and role changes happen with no alert and no record outside the platform.

Practitioner checklist

  • Create one project per workload and environment; keep production out of the Default project.
  • Limit organisation Owners to a small named group and review them monthly.
  • Use a dedicated service account per production workload and store its key in a secrets manager.
  • Set every production key to Restricted or Read Only with only the endpoints it needs.
  • Restrict model access per project and set per-model rate limits where needed.
  • Set a monthly budget and a lower notification threshold for every project.
  • Review retention settings per project, set store deliberately, and use expires_after for files.
  • Collect the Audit Logs API into your SIEM and alert on key, role, service account and login events.
  • Revoke keys and archive projects as part of workload retirement and staff offboarding.

Standards and references

Related NHI Mgmt Group resources: OpenAI API Keys Security Guide · Securing OpenAI Agents SDK and Responses API

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.