Qlik Community

QlikView Integration

Discussion Board for collaboration on QlikView Integration.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
nicolas_martin
Contributor II

How to get the user name in VBS?

Hello,

I'ld like to retrieve the name of the user that uses the application in VBS.

I use the following property:

ActiveDocument.GetApplication.GetProperties.UserName

When I open the application with the desktop client, it gives me the right user name.

When I open the application on the access point, it gives me the right user name.

When I open the application with the desktop client, but with "open on server" "as a different user", it gives me the wrong user name (it returns the local user).

The QV function "OSUser" gives me the right user name.

How can I have the equivalent of "OSUser" in VBS?

1 Solution

Accepted Solutions

Re: How to get the user name in VBS?

Hi Nicolas,

Already you have suggested the half of the solution. Try this,

ActiveDocument.Evaluate("OSUser()")

2 Replies

Re: How to get the user name in VBS?

Hi Nicolas,

Already you have suggested the half of the solution. Try this,

ActiveDocument.Evaluate("OSUser()")

nicolas_martin
Contributor II

Re: How to get the user name in VBS?

Thank you!

I was so focused on the "UserName" property I didn't thought of it...

Community Browser