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

QVUser() in Script

When we implement section access, is there any way I can get QVUser() in script?

4 Replies
Anil_Babu_Samineni

What are you trying to achieve here?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jonathandienst
Partner - Champion III
Partner - Champion III

QVUser() is only set if you are using section access with USER/PASSWORD login. Otherwise, OSUser() can be used. In script, get the values like this:

Let vUser = QVUser();

or

Let vUser = OsUser();


Then use the string variable vUser as required.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Peter_Cammaert
Partner - Champion III
Partner - Champion III

When you reload on the server, calling OSUser() in the script will return the service account.

Not very useful if you ask me

its_anandrjs

The only way is QVUser() in script you can get this or in table if you required then try this you get names in any table field

Let vUserType = QVUser();

UserNames:

Load * Inline

[

UserNames

'$(vUserType )'

];