Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Windows User

Hi Everybody,

Is there any way to return the windows connected user?

The OSUser() function return the NTNAME of Selection Access.

Thanks!

7 Replies
arulsettu
Honored Contributor III

Re: Windows User

can you post what you get and what you need?

Not applicable

Re: Windows User

I need a way to return the current Windows user.

arulsettu
Honored Contributor III

Re: Windows User

what is output you are getting with OSUser() ?

arulsettu
Honored Contributor III

Re: Windows User

for example if your output like this with OSUser()

   DOMAIN/ARUL.SETTU

try this

SubField('DOMAIN/arul.settu','/',2)

you will get only arul.settu

Chanty4u
Esteemed Contributor III

Re: Windows User

=OsUser()

will give  u the same only

u can chk in my comouter properties.

user.PNG

Not applicable

Re: Windows User

I will give you an exemple:

If I connect  in Windows with my user "fernando.martini" an then open the browser and connect in Qlikview with the user "arul.settu", the OSUser() function will return "arul.settu".


I need THE OPERATIONAL SYSTEM USER, in this case "fernando.martini".



Not applicable

Re: Windows User

OSUser() return the user connected in Qlikview, not the Windows user.

Community Browser