How to get user login

P

Patrick Temple

I'm sure this is a stupid question, but how do I get the User's login when
they open the form? I need to run the login against an XML flatfile to
provide access level for the form. I know InfoPath has "User Roles" but they
fall short when crossing multiple Domains. So I'm going to have my own
library of users to check against. However, I can't seem to find out how to
capture the users login when they open the form. Anyhelp would be
appreciated.

Thanks
--Patrick Temple
 
P

Patrick Temple

Kalyan,

thanks for the links, I read through them and their subsequent links. I'm
not sure I found what I needed. Lots of references to VB and C#. I should
of been more specific. I'm using JScript in my forms. These are the
functions I saw being mentioned, maybe you can let me know if one of these
works with JScript or where to find the JScript functions.

Environment.UserName
Context.User.Identity.Name

I also saw some stuff about web services and what not, I don't want to get
that involved for a cross reference.

Anyway, if you or anyone else can point me in the right direction, I
appreciate it. Meanwhile, I'll try playing with these two functions.

Thanks
 

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