Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JQ123
Contributor II
Contributor II

OSUser() not updating with user

Hi,

 

I have an app that in various places shows the value of OSUser() 

This works correctly for myself, the owner of the app. 

After I publish it and other users use the app the value of OSUser() stays as my own userID and domain.

How is this possible and how can I fix this so their userID and domain i.e the value of OSUser() for the user using the app shows.

Thanks,

Jamie 

Labels (1)
5 Replies
rubenmarin

Hi, it should show the user connected. Are you using =OSUser() inside the chart?

If in eaxmaple you load OsUSer() in a variable and you use the variable it will show the last loaded value, that might be your user.

JQ123
Contributor II
Contributor II
Author

Hi,

I am using it in a table in the load script

USER_TEST_1:
Load
OSUser();

And as a variable (to test the issue)

Both show the incorrect user. 

But from what you are saying I think having it in the load script will also show the incorrect value?

rubenmarin

Hi, in the load script it will load a value and that value would be static. Just add a text box or a table with a measure with =OsUser() to check if it changes.

JQ123
Contributor II
Contributor II
Author

Hi,

Thanks, I was using the value of OSUser() instead of OSUser() the function. It doesn't show the incorrect USER ID now,  though it just shows the USERID as '-' . Is this correct for the qlikview.test account?

JQ123
Contributor II
Contributor II
Author

Hi, sorted it now, test user showing correctly., forgot the '()' thanks for your help!