Our support staff are tenant_admin in a support tenant we created. GET /api/v1/crud/acme/ticket?tenant=globex still returns only the support tenant's tickets.
Support dashboard that reads across every customer tenant
Common question, written up by the Supero team.
1 answer
Cross-tenant reads come from the role, not from parameters. tenant_admin, tenant_user and viewer are clamped to their own tenant on every list and query, and the tenant and project parameters can narrow a read but never widen it. developer is clamped the same way, despite its name.
Give support staff a project-level role instead. project_user reads and writes across every tenant in its project without admin actions, which is usually the right fit for support. project_admin also manages tenants and defines schemas. With either role the plain list returns every tenant's tickets, and the tenant parameter narrows it to one customer when you want that.
Keep your customers' own users and API keys on tenant-scoped roles in their own named tenants, so the platform keeps confining them.
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer