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.
The model
A policy is a single rule:
when: matches(source, container_pattern)then: access_level = X # all | restricted | admin_onlywith: required_attrs # e.g. dept=hr, branch=istanbul
access_level
Who can query
all
Any member
restricted
Members whose JWT attrs satisfy required_attrs
admin_only
Org admins only
Where attributes come from
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CoreBase","description":"The governed AI agent platform — autonomous and proactive AI agents over your databases, APIs, and 50+ apps, read-only by default and fully audited.","colors":{"primary":"#0A0A0A","light":"#FAFAFA","dark":"#000000"},"logo":{"light":"https://mintcdn.com/corebase-c69fb2d0/7za2ghMOlqmXiefb/logo/logo.svg?fit=max\u0026auto=format\u0026n=7za2ghMOlqmXiefb\u0026q=85\u0026s=af3be21ceb1caa7d07f402b9697681a0","dark":"https://mintcdn.com/corebase-c69fb2d0/7za2ghMOlqmXiefb/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=7za2ghMOlqmXiefb\u0026q=85\u0026s=d1b7cc830a6e4e85efcc12bf915e3dcf"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/favicon.svg","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://status.corebasehq.com","label":"Status"},{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://corebasehq.com/panel"}},"footer":{"socials":{"x":"https://x.com/corebasehq","github":"https://github.com/corebasehq","linkedin":"https://linkedin.com/company/corebasehq"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"corebase-c69fb2d0","hasAudioNarration":false,"actualSubdomain":"corebase-c69fb2d0","customDomains":["docs.corebasehq.com"],"gitSource":{"type":"github","owner":"corebasehq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae947ca93242cef80c3ca88:success","clientVersion":"0.0.4138","searchFilterCounts":[{"language":"default","tag":"API reference","count":11},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"Platform","count":7},{"language":"default","tag":"CoreMCP","count":5},{"language":"default","tag":"Account","count":5},{"language":"default","tag":"Governance \u0026 memory","count":4},{"language":"default","tag":"Developer API","count":3},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Connect your data","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"concepts/rbac","slug":"/concepts/rbac","pageMetadata":{"title":"Access policies (RBAC)","description":"Restrict who can query which data — by team, role, or column.","href":"/concepts/rbac"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Restrict who can query which data — by team, role, or column.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Table,Tip}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`the-model`,children:`The model`}),`\n`,_jsx(_components.p,{children:`A policy is a single rule:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`when`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`matches(source, container_pattern)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`access_level = X`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # all | restricted | admin_only`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`required_attrs`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # e.g. dept=hr, branch=istanbul`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`access_level`})}),_jsx(_components.th,{children:`Who can query`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`all`})}),_jsx(_components.td,{children:`Any member`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`restricted`})}),_jsxs(_components.td,{children:[`Members whose JWT attrs satisfy `,_jsx(_components.code,{children:`required_attrs`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`admin_only`})}),_jsx(_components.td,{children:`Org admins only`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`where-attributes-come-from`,children:`Where attributes come from`}),`\n`,_jsxs(_components.p,{children:[`User attributes live on each member’s `,_jsx(_components.strong,{children:`organization membership metadata`}),` and are carried into their session token at sign-in. Set them per member from your organization settings.`]}),`\n`,_jsx(_components.p,{children:`Example membership metadata:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"branch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"istanbul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"project\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"compliance-2026\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A user with `,_jsx(_components.code,{children:`dept=hr`}),` can only see tables and Slack channels covered by HR policies.`]}),`\n`,_jsx(Heading,{level:`2`,id:`common-policies`,children:`Common policies`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Lock #finance Slack to admins`,icon:`hashtag`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`source_type=slack_message, container=channel:C123, access_level=admin_only`})})}),_jsx(Card,{title:`HR email by sender domain`,icon:`envelope`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`source_type=o365_email, container=sender_domain:hr.example.com, access_level=restricted, attrs={dept:hr}`})})}),_jsx(Card,{title:`PII columns admin-only`,icon:`lock`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`source_type=mssql, container=column_pattern:.*_ssn$, access_level=admin_only`})})}),_jsx(Card,{title:`Branch-scoped customer rows`,icon:`map-pin`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`source_type=postgres, container=table:customers, access_level=restricted, attrs={branch:user.branch}`})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`audit`,children:`Audit`}),`\n`,_jsxs(_components.p,{children:[`Every retrieval emits a row to `,_jsx(_components.code,{children:`audit_logs`}),`. The columns capture the `,_jsx(_components.strong,{children:`state at query time`}),` — so even if a policy changes later, you can still see what was enforced when:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`user_id`}),`, `,_jsx(_components.code,{children:`is_admin_at_query`}),`, `,_jsx(_components.code,{children:`user_attrs_snapshot`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`query_hash`}),` (SHA-256 of the prompt; raw text is not stored), `,_jsx(_components.code,{children:`query_length`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`retrieved_chunk_ids`}),`, `,_jsx(_components.code,{children:`retrieved_count`}),`, `,_jsx(_components.code,{children:`applied_policy_ids`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`chat_id`}),`, `,_jsx(_components.code,{children:`duration_ms`}),`, `,_jsx(_components.code,{children:`created_at`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Filter by user, policy, or time range under `,_jsx(_components.strong,{children:`Security → Audit Log`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Defense-in-depth: a user with `,_jsx(_components.strong,{children:`no`}),` `,_jsx(_components.code,{children:`user_attrs`}),` set is treated as having empty attrs — they only see `,_jsx(_components.code,{children:`access_level=all`}),` content. Missing attrs are not a bypass.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Access policies (RBAC)","description":"Restrict who can query which data — by team, role, or column.","href":"/concepts/rbac"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The model","slug":"the-model","depth":2,"children":[]},{"title":"Where attributes come from","slug":"where-attributes-come-from","depth":2,"children":[]},{"title":"Common policies","slug":"common-policies","depth":2,"children":[]},{"title":"Audit","slug":"audit","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"corebase-c69fb2d0","siteName":"CoreBase","title":"Access policies (RBAC) - CoreBase","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-20T22:20:30.360Z","originalFileLocation":"concepts/rbac.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Restrict who can query which data — by team, role, or column.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CoreBase\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/favicon.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/favicon.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/favicon.svg\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/favicon.svg\">\u003cmeta data-mint-head property=\"og:title\" content=\"Access policies (RBAC) - CoreBase\">\u003cmeta data-mint-head property=\"og:description\" content=\"Restrict who can query which data — by team, role, or column.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CoreBase\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.corebasehq.com/concepts/rbac\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://corebase-c69fb2d0.mintlify.site/_mintlify/api/og/v2?division=Governance+%26+memory\u0026amp;title=Access+policies+%28RBAC%29\u0026amp;description=Restrict+who+can+query+which+data+%E2%80%94+by+team%2C+role%2C+or+column.\u0026amp;theme=e4e3ff02a1392f8a9959e2f4\u0026amp;signature=390cc1f28cecc9fa3f39308b04c303daf6b6d9f4f646a78976ea61ccb0880fe6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Access policies (RBAC) - CoreBase\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Restrict who can query which data — by team, role, or column.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://corebase-c69fb2d0.mintlify.site/_mintlify/api/og/v2?division=Governance+%26+memory\u0026amp;title=Access+policies+%28RBAC%29\u0026amp;description=Restrict+who+can+query+which+data+%E2%80%94+by+team%2C+role%2C+or+column.\u0026amp;theme=e4e3ff02a1392f8a9959e2f4\u0026amp;signature=390cc1f28cecc9fa3f39308b04c303daf6b6d9f4f646a78976ea61ccb0880fe6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/corebase-c69fb2d0/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CoreBase\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.corebasehq.com/concepts/rbac\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/rbac.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.corebasehq.com/#organization\",\"name\":\"CoreBase\",\"url\":\"https://docs.corebasehq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/corebase-c69fb2d0/7za2ghMOlqmXiefb/logo/logo.svg?fit=max\u0026auto=format\u0026n=7za2ghMOlqmXiefb\u0026q=85\u0026s=af3be21ceb1caa7d07f402b9697681a0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.corebasehq.com#website\",\"name\":\"CoreBase\",\"url\":\"https://docs.corebasehq.com\",\"publisher\":{\"@id\":\"https://docs.corebasehq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.corebasehq.com/concepts/rbac#webpage\",\"url\":\"https://docs.corebasehq.com/concepts/rbac\",\"name\":\"Access policies (RBAC)\",\"description\":\"Restrict who can query which data — by team, role, or column.\",\"dateModified\":\"2026-06-20T22:20:30.360Z\",\"isPartOf\":{\"@id\":\"https://docs.corebasehq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.corebasehq.com/concepts/rbac#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.corebasehq.com/concepts/rbac#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Governance \u0026 memory\",\"item\":\"https://docs.corebasehq.com/concepts/governance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Access policies (RBAC)\",\"item\":\"https://docs.corebasehq.com/concepts/rbac\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.corebasehq.com/concepts/rbac#article\",\"headline\":\"Access policies (RBAC)\",\"name\":\"Access policies (RBAC)\",\"description\":\"Restrict who can query which data — by team, role, or column.\",\"url\":\"https://docs.corebasehq.com/concepts/rbac\",\"mainEntityOfPage\":{\"@id\":\"https://docs.corebasehq.com/concepts/rbac#webpage\"},\"dateModified\":\"2026-06-20T22:20:30.360Z\",\"publisher\":{\"@id\":\"https://docs.corebasehq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.corebasehq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CoreBase\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CoreBase\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/rbac.md","siteName":"CoreBase","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"CoreBase","href":""},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Connect your data","pages":[{"title":"Connect your data","href":"/connect/sources"},{"title":"SaaS connectors","href":"/connect/connectors"}]},{"group":"Governance \u0026 memory","pages":[{"title":"Governance","href":"/concepts/governance"},{"title":"Unified Context","href":"/concepts/corporate-memory"},{"title":"Zero Raw Data Egress","description":"Where your data lives in every CoreBase deployment mode.","href":"/concepts/zero-raw-data-egress"},{"title":"Access policies (RBAC)","href":"/concepts/rbac"}]}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/platform/intro"}]},{"tab":"CoreMCP","pages":[{"title":"CoreMCP","href":"/coremcp/intro"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Access policies (RBAC) - CoreBase","buildId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","deploymentId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","dynamics":[],"chunks":[]}