Kibana audit log

how to store user email id in user meta data, which will go into kibana audit log?

I want to see the user email in kibana audit log.

just mapping this elasticsearch.yml is sufficent ?

xpack.security.authc.realms.native.native1:
attributes.mail: "email"