ShieldUser access in field formatters

security

#1

I'm trying to write a new field formatter in Kibana 6.4.2, and in it I would like to use the username of the currently logged in user. I see that this can be done using the ShieldUser service, but I don't know how I can inject that dependency or get a handle of that service in the field formatter functions. Anyone have any ideas?


(kulkarni) #2

@timroes @Stacey_Gammon - can either of you shed some light here ?

Thanks
Rashmi