Restrict who can query which data — by team, role, or column.
By default every member of an organization can query every connected data source. For most companies that’s too open. CoreBase’s access policy engine lets you scope reads to a specific user attribute, table, or column pattern — enforced server-side, before SQL hits your database.
User attributes live on each member’s organization membership metadata and are carried into their session token at sign-in. Set them per member from your organization settings.Example membership metadata:
Every retrieval emits a row to audit_logs. The columns capture the state at query time — so even if a policy changes later, you can still see what was enforced when:
user_id, is_admin_at_query, user_attrs_snapshot
query_hash (SHA-256 of the prompt; raw text is not stored), query_length
Filter by user, policy, or time range under Security → Audit Log.
Defense-in-depth: a user with nouser_attrs set is treated as having empty attrs — they only see access_level=all content. Missing attrs are not a bypass.