Hi, If you can use SparkInterpreter, you can get current user by
%spark z.getInterpreterContext.getAuthenticationInfo.getUser() I think other interpreters does not provides way to access username inside the notebook. It would be nice if zeppelin has some way to access username inside the notebook for all interpreters. Thanks, moon On Sat, Mar 26, 2016 at 2:21 AM Panayotis Trapatsas < p.trapat...@pamediakopes.gr> wrote: > Hi, > > I have setup Zeppelin notebook authentication using Apache Shiro. > > How can I get the username of the logged-in user inside the notebook? > > It would be useful for filtering results related to the specific logged-in > user. > > Any suggestions? > > Thanks, > > -- > > [image: e-Travel SA] <http://pamediakopes.gr/> > > Panayotis Trapatsas / Lead Data Engineer > p.trapat...@pamediakopes.gr / +30 6979493921 > > e-Travel SA > Office: +30 213 0184000/ Fax: +30 211 8001181 > Leof. Kifisias 7, AmpelokipiAthiens 115 23, Greece > pamediakopes.gr | trip.ru | airtickets24.com | fantasticgreece.com > > [image: Google +] <https://plus.google.com/u/0/+PanayotisTrapatsas>[image: > Stack Overflow] <http://stackoverflow.com/users/2618541/panayotis> >