Databunker Pro: Role Access Token Demo
A root token can read everything. Most services should not. This example shows how to mint a role access token that is scoped down to exactly one slice of your data — and then prove what it can and cannot reach. It covers:
- Scoping to One App: A billing service that sees billing app data and nothing else
- Scoping to a Group: The same access, restricted to customers in one region
- Scoping by File Tag: A KYC reviewer that sees passports but not contracts
- Cross-User Lookups: Tenant-wide search that still respects the group boundary
Every step runs against a live vault. Denials below are real API responses, not illustrations.
ℹ️ All requests are executed in the sandbox environment (show/hide configuration).
Step 1: Create the EU Customer
A customer inside the EU group, with app data and two documents
Step 2: Create the US Customer
A second customer with the same data, but outside the EU group
Step 3: Create an Access Token Limited to One App Record
Add a role, define a policy that names it as the Principal, link the two, then issue an access token that carries the role — reaching one app record for every customer, and nothing else
Try it free — startups get $1,000 in credits
If you're an early-stage startup, we'll give you $1,000 in credits — enough to run Databunker Pro completely free for your first couple of months. Book a short setup call and we'll get you started and apply the discount automatically.
Step 4: Prove the Scope
Connect as the billing service and try to step outside the policy
Step 5: Limit the Access Token to One User Group
Name the group alongside the app in the Resource list, issue a fresh token from that policy, and the identical request now works for a member and fails for everyone outside
Step 6: Create an Access Token Limited to Tagged Files
A KYC reviewer role scoped to the passport and kyc tags — the listing comes back filtered, so the signed contract never shows up at all
Step 7: Limit a File Search to One User Group
Bulk listing is default-deny, so the role carries a second policy just for the unlock — and a query that spans every customer still returns only rows inside the group
Step 8: Review What Was Issued
List the policies now defined in this tenant
Next Step
Want to get access to extended trial?
The sandbox above is a shared, disposable tenant. Generate a free trial key to run Databunker Pro on your own data — 1 million records for 30 days.
Book 15-Min Setup Call