Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
pmenchon
Contributor III
Contributor III

Get the UserId

Hello, I would like to know how can I get the UserId or the name of the logged-in user in the app to show it in a text like "Welcome User".

Thank you all.

 

2 Solutions

Accepted Solutions
hansvillo
Contributor III
Contributor III

Hi,

You can use OSUser()

Qlik prints something like: Userdirectory=****;UserID=*****

You can use an expression to only select the userid

Subfield(OSUSER(),UserID=',2)

View solution in original post

GnaneswarReddy
Contributor III
Contributor III

Try this ,

SubField(OSUser(),'=',-1)

View solution in original post

3 Replies
hansvillo
Contributor III
Contributor III

Hi,

You can use OSUser()

Qlik prints something like: Userdirectory=****;UserID=*****

You can use an expression to only select the userid

Subfield(OSUSER(),UserID=',2)

GnaneswarReddy
Contributor III
Contributor III

Try this ,

SubField(OSUser(),'=',-1)

pmenchon
Contributor III
Contributor III
Author

Working perfect, thank you!!!