OriginChainDB
Database endpoints

Check a user's row policies

See which row policies apply to a user on a table, without running a query as that user.

GET /v1/tenants/{tenant}/db/rls/effective

Explain a user's applicable row policiesThis inspection does not execute a query or return visible rows.
  1. Select user and tableChoose the access combination to investigate.
  2. Evaluate policy selectionInspect restricted, superuser and policy-applies flags.
  3. Read the explanationUse it to understand the applicable row filters.

Before you start

Use your database bearer token.

Connection setup

Use an identity authorized to manage access in this tenant.

Path parameters

FieldTypeRequired
tenantstringRequired

Query parameters

FieldTypeRequired
userstringRequired
tablestringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Read the result

Check restricted, is_superuser and each policy's applies flag. This explains policy selection for the requested user/table; it does not run a query or return the rows they would see.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
429Honor Retry-After when present; back off.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd