Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
rbgibbonsiii
New 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
MVP & Luminary
MVP & Luminary

Re: How to access the "Authenticated user" within the application

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
Valued Contributor II

Re: How to access the "Authenticated user" within the application

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
New Contributor

Re: How to access the "Authenticated user" within the application

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
New Contributor

Re: How to access the "Authenticated user" within the application

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".