environment.username property

S

steve

I'm having a crazy problem that i hope someone can help me fix.

Like many of you, i have code behind my infopath form that uses
environment.username to determine the name of the person using the
form. This code has been running for years, with dozens of users.
It's aways been fine.

One of the users recently got a new laptop. the code that uses
environment.username no longer works. it gives me the name of some
other user, not the one that is currently using the form.

this user is at a remote location, so i can't look at the machine
myself.

Anybody have a guess?
 
S

Swathi (GGK Tech)

Hi,
If he logged in with other user name in remote machine then
environment.username gives the user name which is logged in. How do you know
the user name is incorrect?
 
S

Shiva (GGK Tech)

Hello,

It will give the user alias name as you entered while creating the user in
AD service. User alias name is different from display name of that user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top