Retrieivng the current user information in MOSS Form Services - InfoPath Dev Sign in | Join | Help in Browser Forms InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Browser Forms » Retrieivng the current user information in MOSS Form Services Retrieivng the current user information in MOSS Form Services Last post 05-07-2009 08:47 AM by moh.kanaan. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-06-2009 04:30 PM moh.kanaan Joined on 05-06-2009 Jordan Posts 5 Retrieivng the current user information in MOSS Form Services Reply Contact Hi, I am developing an infopath form in MOSS Form Services, I wonder if i can retrieve the Full Name of the current logged user. "I am developing an inranet portal" Thanks, MAS MAS Filed under: MOSS, form services, username() 05-07-2009 12:48 AM In reply to Samir Farid Joined on 04-03-2009 Netherlands Posts 71 Re: Retrieivng the current user information in MOSS Form Services Mark as Not AnswerMark as Answer... Reply Contact Hi MAS, You can simply get the username of the logged in user by using the following statement in code:this.Application.User.LoginName However, it's not so easy to get the full name of the logged in user. In my opinion the best way is to do a webservice call to one of MOSS's webservices and get Information about the user. I have found an article on the web which gives an example of how to achieve this. http://cs.vbcity.com/blogs/skullcrusher/archive/2008/09/26/get-the-full-user-name-in-a-web-hosted-infopath-form.aspx Hope this helps. Kind Regards, Samir Filed under: web service 05-07-2009 08:47 AM In reply to moh.kanaan Joined on 05-06-2009 Jordan Posts 5 Re: Retrieivng the current user information in MOSS Form Services Mark as Not AnswerMark as Answer... Reply Contact Thanks Samir MAS Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi,
I am developing an infopath form in MOSS Form Services, I wonder if i can retrieve the Full Name of the current logged user. "I am developing an inranet portal"
Thanks,
MAS
Hi MAS,
You can simply get the username of the logged in user by using the following statement in code:this.Application.User.LoginName
However, it's not so easy to get the full name of the logged in user. In my opinion the best way is to do a webservice call to one of MOSS's webservices and get Information about the user. I have found an article on the web which gives an example of how to achieve this.
http://cs.vbcity.com/blogs/skullcrusher/archive/2008/09/26/get-the-full-user-name-in-a-web-hosted-infopath-form.aspx
Hope this helps.
Kind Regards,
Samir
Thanks Samir