Ask questions of your WorkOS data

Foundry syncs a WorkOS environment's organizations, users, SSO connections and directories, so who your customers are sits beside what they pay for and use.

What Foundry reads from WorkOS

One environment, Staging or Production, read with its secret key:

  • organizations
  • users
  • organization_memberships
  • invitations
  • sso_connections
  • directories
  • directory_users
  • directory_groups
  • directory_group_members

Questions you can ask

  • “Which organizations have SSO set up, and what plan are they on?”
  • “Which invitations are still pending, and for which organization?”
  • “How many users does each organization have?”

From tables to a graph

How WorkOS becomes part of your graph

Organizations become the accounts your other systems refer to, matched by the external IDs you store in WorkOS, with users, memberships and directories linked to them.

  1. Sync. Foundry keeps its copy of your data up to date, syncing more often on paid plans.
  2. Draft. The ontology agent drafts types, links and rules from your data and your goal. You review and edit it.
  3. Load. A load writes it into HelixDB, and every value keeps its source: a table row, or a quote in a document.
  4. Ask. The Analyst answers questions with the queries it ran and a source for every claim, and on Helix Cloud your agents can query it through the Helix MCP.

Setup

Connect WorkOS

  1. In WorkOS, open API Keys and switch to the environment to import.
  2. Copy the sk_ secret key; create a new one if you no longer have it.
  3. In Foundry, open Data, click Add data, choose WorkOS and paste the key. Foundry only reads.
  4. Test and connect.