Metabase: Feature request : Question's parameter containing the current username

Created on 28 Aug 2017  路  3Comments  路  Source: metabase/metabase

Dear all, thank you for providing us with such a powerful analytics tool !

It would be great to show data relating only to the current user.
Could it be possible to have a constant string parameter containing its username ?
{{mb_login}} for example ?

This parameter could be also available in the Question filter, and as a possible default value in the Dashboard filters.

Thank you !

.Proposal AdministratioPermissions Security

Most helpful comment

This would be very helpful to me as well. I don't want to embed the dashboards into my own app because the users want to interact with Metabase. Ideally, my app would populate the table data with the user name and then launch Metabase, automatically logging in as that user (I know the auto login is a different issue, I'm just explaining my ideal use case). The dashboards would appear and show only the data that pertains to that user. Even if the filter id on the dashboard could be pre-populated with the logged in user name or email address, that would be helpful. The {{mb_login}} parameter is a better solution though.

All 3 comments

This is possible to a limited degree by embedding a Metabase dashboard or question in a wrapper web application, which would allow you to pass a user ID parameter to the dashboard/question.

Are you trying to do something like enable clients/customers to log into a Metabase instance, but only see data pertinent to them? If so, another way we're looking at doing this is via row-level permissions.

This would be very helpful to me as well. I don't want to embed the dashboards into my own app because the users want to interact with Metabase. Ideally, my app would populate the table data with the user name and then launch Metabase, automatically logging in as that user (I know the auto login is a different issue, I'm just explaining my ideal use case). The dashboards would appear and show only the data that pertains to that user. Even if the filter id on the dashboard could be pre-populated with the logged in user name or email address, that would be helpful. The {{mb_login}} parameter is a better solution though.

IMHO it is now included in #2824

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mazameli picture mazameli  路  3Comments

iwaffles picture iwaffles  路  3Comments

tlrobinson picture tlrobinson  路  3Comments

mazameli picture mazameli  路  3Comments

anki-code picture anki-code  路  3Comments