Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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!!!