Logging user email from AAD in console logs

I have a working grafana setup. My ini file contains:

[auth.azuread]
name = Azure AD
enabled = true
allow_sign_up = true
client_id = APPLICATION_ID
client_secret = CLIENT_SECRET
scopes = openid email profile
auth_url = AUTH_URL
token_url = TOKEN_URL
allowed_domains =
allowed_groups =
role_attribute_strict = true
allow_assign_grafana_admin = true
force_use_graph_api = true

I have router logging enabled and the logs look like this:

logger=context userId=user orgId=org uname=test…

how do I successfully log the the users email from aad?

logger=context userId=user orgId=org uname=test email= test_email

You can’t configure that. So only options for you is to modify source code, where you log user email and build own Grafana version.