Is it possible to have multiple tenants in Superset ? #42242
Replies: 2 comments 3 replies
|
Yes, multi-tenancy is possible in Superset using Row-Level Security (RLS). You can create RLS rules with SQL WHERE clauses like For embedded deployments, you can also scope RLS via guest tokens: {
"rls": [
{ "clause": "account_id = '123'", "dataset": 42 }
]
}Always include the Regarding hiding charts with no data for a tenant: Superset does not natively support conditionally hiding a chart when its query returns no results. If RLS filters out all rows for a particular customer, the chart will still appear on the dashboard but display an empty state (e.g., "No results"). There's no built-in "show chart only if data exists" toggle. Workarounds:
For now, the most common pattern is to design charts that handle empty data gracefully, or maintain multiple dashboards tailored to different tenant profiles. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
|
It's plausible, but there are a lot of intricacies and risks, and users/etc can be visible. It's possible on open source, but non-trivial. This is one of the early reasons we built Preset, to tackle this kind of thing "out of the box" ;) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have used some ids like say account id , customer id etc for diffrent tenants (and used RLS to filter them out , so that the charts do not show other persons data )
The thing is that i need to know whether is it possible to make sure that SOME charts which do not have any data against that CUSTOMER is actually not suppose to not show that Chart itself , is such a thing possible ?
All reactions