One place that decides who can see and change what
Pages, folders, spaces and every row of every table are checked by one permission service, with row policies written in a small subset of CEL.
Why Think Authz?
Think Authz is the permission service behind OpenThink. It decides what each person can do on a page, a folder or a whole space, and what an embedded page lets them see. When it cannot answer, the request fails instead of being allowed.
Table Policy adds rules on rows: who can select, insert, update or delete which rows, and which columns. The same rule is applied by the table view, HTML pages, SQL blocks, MCP and the REST API, so a page cannot bypass it.
Benefits
Web, REST v1, MCP, HTML pages and Think Service as the caller all go through the same check.
row.by == me, me in row.Assignee, row.Due < now. Type-checked against your columns when you save.
A rule that refers to a deleted column is dropped, so access narrows instead of widening.
Features
Row policies
Rules per action with using (existing row) and check (row after write). Rules of the same action are OR-ed.
Column limits
columns on select hides columns; columns on update limits which cells a rule may change.
Who a rule applies to
members, public, owner, edit, comment or view. Owners and editors build the table and are not limited.
Compiled to SQL
The same condition is evaluated in JavaScript and translated to a WHERE clause, for JSON tables and Think Store.
Sharing model
Invites and links on pages, folders and spaces, roles edit, comment and view, plus restricted items that do not inherit.
Set from code or AI
PUT /api/spaces/:id/policies, the build tool over MCP, or rules when you create a table.
Pricing
Think Authz is part of every OpenThink plan, not billed on its own. On Free it runs within the limits below; on Team it draws from the monthly usage credit, and your admin sets the spending cap.
See OpenThink Cloud pricingLimits
| Rules | Up to 20 per table |
|---|---|
| Condition length | Up to 1,000 characters |
| Language | Subset of CEL: comparisons, in, has(), && || ! |
| Who sets policies | The space owner |
Getting started
- 01
Invite with the right role
People who should follow rules get the View role on the table, folder or space.
- 02
Write the rules
Use build { policies } over MCP or PUT /api/spaces/:id/policies. A wrong rule is rejected with its position.
- 03
Read as the caller
In Think Service, store.asViewer() reads and writes under the caller's role and policies.
{ "space": "Kanban", "policies": [{ "table": "Tasks", "rules": [
{ "action": "select", "using": "true" },
{ "action": "insert", "check": "row.by == me" },
{ "action": "update", "using": "me in row.Assignee",
"columns": ["Status"] }
] }] }Frequently asked questions
How is this different from Postgres RLS?
The idea is the same. Here the rules are CEL conditions checked by one service for every path, including HTML pages and AI over MCP, not only SQL queries.
Do owners and editors follow the rules?
No. They build the table. Rules apply to viewers, commenters, link visitors and guests.
What happens if Authz is down?
The request returns an error. OpenThink never treats a failed permission check as allowed.
Can guests who are not signed in use a policy?
Yes, with appliesTo public. For them me is null, so rules like row.by == me never match.
Explore other managed services
Think Store
A real SQLite database for every space, with indexes, constraints and relations between tables.
RealtimeThink Collab
Realtime co-editing, presence and change events for every page in a space.
ComputeThink Service
Serverless routes, cron schedules and table triggers, served at their own URL.
Start building on OpenThink Cloud
Create a free account. Your first space is ready when you land.