3 Replies Latest reply: Jan 15, 2016 5:26 AM by dion verbeke RSS

    authenticated user

    dion verbeke

      Hi,

       

      I'm writing an extension, but I need to get the authenticated user.

       

      Currently

       

      var global = qlik.getGlobal();

        

           var  vUser = '';

             global.getAuthenticatedUser(function(reply){

                   alert('User:'+reply.qReturn);

        vUser =  reply.qReturn;

        console.log(reply.qReturn);

             });

       

      gives me 'Personal\Me'

       

      What is the official code in Javascript to get the authenticated user in Qlik Sense. It would be appreciated if I did not have to call the Global Qlik object.

       

      Kind Regards,

       

      Dion