CloudQuery News

Introducing the new OpenAI Source Integration

We have heard from our community maintaining security and compliance in the fast-evolving AI landscape is a challenge. Today, we are excited to introduce our new OpenAI Source Integration designed to help organizations integrate compliance and audit data from OpenAI.

What does the OpenAI integration do?

This new integration gets information about your OpenAI projects and their users allowing you to audit access of individual users to your OpenAI projects. Connecting the user project access information with other integrations, such as our BambooHR Source Integration, will help you make sure that their access is removed when the employees leave, for example.

How the OpenAI Source Plugin Works

Here’s a step-by-step guide on how to configure the OpenAI Source Plugin and utilize the data collected from OpenAI.

  1. Obtain Your API Key: Start by getting the administration API key from the OpenAI platform by following these instructions.
  2. Install CloudQuery CLI: Download and install the CloudQuery CLI on your machine by following the steps on our download page.
  3. Set Up the Sync Configuration: Create a CloudQuery configuration file by running the following init command:
cloudquery init --source openai --destination postgresql
  1. Update the Configuration File: Open the generated openai_to_postgresql.yaml file in your favorite text editor. Replace the placeholders ${OPENAI_ADMIN_API_KEY} with your API key from step 1, and ${POSTGRESQL_CONNECTION_STRING} with your PostgreSQL connection string.
  2. Sync with CloudQuery: Log in using cloudquery login, then run the command below to begin syncing:
cloudquery sync openai_to_postgresql.yaml

For more details on this process, refer to the OpenAI Source Integration documentation.

Note that these examples assume the data was synced using the OpenAI to PostgreSQL configuration.

Querying Synced Data

Now, let’s explore how to use SQL to query the synced data.

To find out which projects a specific team member has access to, use the following query:

select distinct project_name
from openai_project_users
where email = '[email protected]';

The new CloudQuery OpenAI integration also syncs the audit log that can be used to review all login activities. To view when each user last logged in, execute:

select actor, type, effective_at
from openai_audit_logs
where type = 'login.succeeded'
and effective_at = (
select max(effective_at)
from openai_audit_logs as al
where al.actor->'session'->'user'->>'email' = openai_audit_logs.actor->'session'->'user'->>'email'
and al.type = 'login.succeeded'
);

This can help identify any unexpected sign-ins to the OpenAI platform.

To find invites sent to external members, run:

select *
from openai_invites
where email not ilike '%@example.com';

This query filters out invites sent to external email addresses.

With the OpenAI Source Plugin, you can play around with the data and fine-tune the queries in any format that's easiest for you. Once the sync is complete, you'll have all the data in a destination such as PostgreSQL, MySQL, BigQuery, or any other supported destination. These destinations are specifically designed for efficient data exploration and querying, making them a great fit for handling data from OpenAI.

Get Started Today

Want to see CloudQuery in action? Schedule a demo with our team or check out the platform documentation to learn more.

The OpenAI Source Plugin is available now.

Got feedback or suggestions? Join the CloudQuery Community to connect with other users and experts.

Try CloudQuery yourself

Self-hosted, open source, and free to start. Or schedule a demo to see the managed version.

Related posts

CloudQuery News

Introducing CloudQuery Insights: Cloud Intelligence That Connects the Dots

CloudQuery Insights automatically surfaces connected signals across your cloud inventory: security findings, cost data, policy violations, and audit trails.

Joe Karlsson

Joe Karlsson

April 21, 2026

Cloud Infrastructure

CloudQuery News

Introducing the Nautobot Source Integration

Sync Nautobot DCIM inventory data to PostgreSQL, BigQuery, or Snowflake and query it with SQL alongside your cloud provider data.

Joe Karlsson

Joe Karlsson

March 19, 2026

CloudQuery News

CloudQuery Is Merging with Env Zero

A letter from CloudQuery CEO Yevgeny Pats on the merger with env zero and what it means for customers.

Yevgeny Pats

Yevgeny Pats

March 17, 2026

CloudQuery News

Security

Introducing the Zoom Source Integration

New CloudQuery Zoom source plugin: sync Zoom meeting, user, and webinar data into your database for compliance, analytics, and user access governance reporting.

Joe Karlsson

Joe Karlsson

February 2, 2026

CloudQuery News

Product News

New in CloudQuery: Tines + Semgrep integration, and native visualizations,

CloudQuery October 2025 updates: Tines and Semgrep integration for security orchestration, plus native visualization support in the CloudQuery Platform.

Chris Reuter

Chris Reuter

October 31, 2025

CloudQuery News

Product News

Security

Introducing Data Access Control for CloudQuery Platform

CloudQuery Platform RBAC: Control cloud asset access with SQL-based permissions. Map Azure AD/Okta groups to roles. Available now on all environments.

Joe Karlsson

Joe Karlsson

October 28, 2025

AI

CloudQuery News

Understand your cloud infra faster using natural language

CloudQuery unifies AWS, GCP, Azure, and SaaS configs into SQL tables. The new AI assistant lets you query your cloud inventory using natural language.

Chris Reuter

Chris Reuter

September 29, 2025

CloudQuery News

Find the Cloud Waste Contest

Win CloudQuery swag by finding cloud waste in our dataset. Sync AWS data with CloudQuery, solve 3 SQL challenges, get t-shirts, sweatshirts, and mugs.

Joe Karlsson

Joe Karlsson

September 25, 2025

AI

CloudQuery News

Generate CloudQuery Configuration with Natural Language

Generate CloudQuery config files from natural language prompts. Use AI to quickly create source and destination plugin configs without manual YAML editing.

Chris Reuter

Chris Reuter

September 23, 2025

Own your pipeline.
Own your data.