Is it possible to get Grafana current user login?

Is it possible to get Grafana current user login information / or the team ? and use it in an variable ?

Thanks

2 Likes

current or logged user login / team

1 Like

UP, GRAFANA Team. It’s possible?

Have a look at the documentation here for your answer:

1 Like

Thank you a lot for feedback,

is version 7.1 already available for download?

Start from the downloads page https://grafana.com/grafana/download

Click on “nightly builds” and read the information about development vs.
stable, then decide whether you want to try it.

Antony.

1 Like

Thank you a lot for answer,

is it also possible to get the current/logged user’s team?

is it also possible to get the current/logged user’s team?

No, a user can be a member of multiple teams, so even if it was possible it wouldn’t be obvious how it would work.

we would like to filter the user’s access according to their team (even if the variable returns only one team)

example: we have a “cluster” variable in our dashboard, the “test” user belongs to the “europe” team, so the “test” user will only see information from the “cluster” or “europe” variable

this variable could bring only one team to which it belongs, or bring separated by “;”

this resource would be very useful

It it possible talk with development team about this matter ?

It it possible talk with development team about this matter ?

we would like to filter the user’s access according to their team (even if the variable returns only one team)

example: we have a “cluster” variable in our dashboard, the “test” user belongs to the “europe” team, so the “test” user will only see information from the “cluster” or “europe” variable

this variable could bring only one team to which it belongs, or bring separated by “;”

this resource would be very useful

Sorry for missing your responses, Discourse only notifies someone of responses if they’re replying directly to one’s message :frowning:

Disclaimer: You wouldn’t limit a user’s access based on their team even with that functionality in place, as the user would be able to manipulate the queries before having them sent to Grafana’s data source proxy.

With that said, there might be ways of implementing this that would make sense alternatively this notion of assigning variables to teams (so that you could have a $area variable which for the europe team is europe and for the us team is us et c.). It’s not a feature I’d personally use (I don’t like the same URL going to two different views of a dashboard) but there are legitimate use-cases for it. That has been suggested as a feature request:

If that wouldn’t solve it for you, I’d suggest opening a feature request on GitHub. We have no way of tracking feature requests from the community forums.