InfoPath username() returns only name, not domain - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath username() returns only name, not domain

Last post 04-28-2016 09:35 AM by Carphunter. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-27-2016 08:49 AM

    InfoPath username() returns only name, not domain

    I'm not sure what causes this...but I've seen InfoPath return the full domain\username  in the past with the username() function.   now, more commonly, I only see it return the user name.

    Is this a switch type setting, or something upstream of InfoPath that has to be adjusted?

     thanks 

  • 04-28-2016 08:54 AM In reply to

    Re: InfoPath username() returns only name, not domain

  • 04-28-2016 09:18 AM In reply to

    Re: InfoPath username() returns only name, not domain

     I think if you publish the form and then open up the form, the domain name comes in as well.You might get other characters as well depending on your SP version and if you're using the getuserprofile service.

  • 04-28-2016 09:25 AM In reply to

    Re: InfoPath username() returns only name, not domain

    huh, my post disappeared. yep... i did find this out and posted it. thanks
  • 04-28-2016 09:35 AM In reply to

    Re: InfoPath username() returns only name, not domain

     I should note that the behavior of our 2010 and 2013 SharePoint servers is different.

    InfoPath forms on the 2013 box do respond with the full domain / account name

     Forms on the 2010 box only return the account name.

     

    and for further consideration, it appears the 2010 box will take a userprofile request without a domain name  on it, while the 2013 will not.  it's almost like there's a "treat as default domain" type switch for the service...but I don't think I've ever seen that anywhere in Central Admin

     means we're going to have to inspect a ton of forms when we move our db over.

     

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.