Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rbgibbonsiii
Contributor
Contributor

How to access the "Authenticated user" within the application

We have two applications that are refreshed nightly by sa, but accessed all day by a number of users.  We would like to customize the information that each individual sees and/or filter for just their department, but I cannot seem to find the appropriate field the holds this information.  The information is readily available in the log files as "Authenticated user", "Identifying user", "User" etc... so I know the Qlikview server knows who it is, but how can I reference that within the application?  I saw someone posted OSUser(), but that's the machine name and NOT the authenticated user.

Thanks in advance,

Rob

4 Replies
marcus_sommer

Normally will osuser() return the logged-in user - have you tried to put osuser() in a visible textbox to check what will be returned by logging in from various users/machines/clients. If it's not the user then which authentication and login configurations are made within the qmc.

If your data contain any confidential data then you mandatory need to extend your logics to Section Access.

- Marcus

PradeepReddy
Specialist II
Specialist II

from QlikView desktop Help,

OSuser( ) : Returns a string containing the name of the current user as returned by the operating system.

ComputerName( ) : Returns a string containing the name of the computer as returned by the operating system.

Edit: Can you please specify the format of the 'Authenticated user' from server log.

rbgibbonsiii
Contributor
Contributor
Author

OSUser pulls the Active Directory userid of the machine accessing the application, but we're authenticating through our primary database (using the GetTicket).  In the QlikViewServer folder, the Sessions log file correctly shows the userid I'm looking for as "Authenticated User" and "Identifying user"; in the Audit log it correctly shows as just "User".

rbgibbonsiii
Contributor
Contributor
Author

as this the information you needed from the Session and Audit logs?

OSUser pulls the Active Directory userid of the machine accessing the application, but we're authenticating through our primary database (using the GetTicket).  In the QlikViewServer folder, the Sessions log file correctly shows the userid I'm looking for as "Authenticated User" and "Identifying user"; in the Audit log it correctly shows as just "User".