Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik OSUser mapping to the Actual username

Hi,

I am trying to map the OSUser function value to the actual user name for the user and have not been successful. I have stored the usernames and user full names in a table and I am using the following set analysis:

=Max({<USER_NAME={'$(=Upper(SubField(OSuser(),'\',2)))'}>} USER_FULL_NAME)

Any help would be great

2 Replies
Colin-Albert

Max returns the maximum number, your should use maxstring.

=Maxstring({<USER_NAME={'$(=Upper(SubField(OSuser(),'\',2)))'}>} USER_FULL_NAME)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or, if every UserID only occurs once in your tble, use Only() like in:

=Only({<USER_NAME={'$(=Upper(SubField(OSuser(),'\',2)))'}>} USER_FULL_NAME)