I'm trying to retrieve in my app the user name of the current user.
The OSUser() function only returns the userdirectory and the userid.
Is there a way to retrieve the user name as shown in the QMC (or when logged on the hub - at the top left)
thanks for your help
ps: we're working with Qlk enterprise Sept. 2019 Patch 1
Thanks for the answer.
I had already tried your solution but it returns the AD userid, not the user name.
The Active Directory information logged into the qmc is username, domain, userid
Do you find any solution for this. Even I am trying to retrieve UserName in Mashup.
I am able to get UserID with OSUser() function but my requirement to show in MAshup webpage is Username.
If you have already got a solution pls share to us.
SumField(OSUser(), '=', -1)
If not, How it is returning when you use simply OSUSER()