Can I limit the default options on a filter value?

2c7c9108-07d4-470e-8bac-f9c0add8f3cd.png

Hi!! Need to be able to only show the option matches a user attribute = email. Nothing else as this would allow users to slice the data outside of that permitted one.

0 3 128
3 REPLIES 3

We don’t have ability to change how the filter works. The only way to achieve that would be to use sql_always_where, and if you can’t do that to the whole explore, you may need to create an extension with sql_always_where that is used only for the Dashboard

Hi @Dawid thank you so much for the quick response. Would you be able to provide some documentation on this sql statement? Thank you!

Here is the way to do it with always_filter:

https://cloud.google.com/looker/docs/admin-panel-users-user-attributes#access_filters

Here is an example using Liquid to get user attribute and create a tighter join by equalling it with a field.

Both examples show up in the SQL tab:

https://community.looker.com/lookml-5/advanced-permissioning-using-user-attributes-6347
Top Labels in this Space
Top Solution Authors