How do I filter question based on logged user

I’d like to filter a query based on username of logged user.

How can I do that to customize data for my sales team?

Thanks in advance,
Sergio Gabriel


That’s not currently possible, though if you were to create a simple web app and embed that query (or a number of queries in a dashboard) in your app, you could have your app pass a locked parameter to Metabase based on that user’s ID to filter the query.

Hi there.

I have the same problem. I have enabled the Google SSO and I would like to use the logged e-mail address to filter questions based on it, so an user can only see data related to itself.

Is it possible to make it happen?

Thanks in advance!

1 Like