Solved

Infopath form on sharepoint needs to connect with active directory

Posted on 2016-08-05
5
30 Views
Last Modified: 2016-10-09
Hello

I created a car request form  using InfoPath on sharepoint. car request form

We need the Active directory to prepopulate the users name in the name field along with email - Automatically base on the user profile

Please provide high level summary of best method to do this and link to further detailed information if very complicated. Also who do I need to work with to accomplish this (network administrators etc. )
0
Comment
Question by:LBecerra
  • 3
5 Comments
 
LVL 16

Assisted Solution

by:Walter Curtis
Walter Curtis earned 332 total points
ID: 41744587
If you want only one name to appear, that would not be a pulldown, but instead a single line of text column type. You can use jQuery to populate that field. Also to populate the email field, that is provided that AD has the email addresse listed in AD, which they probably should.

As in the other question, which is a clone of this one, good luck...
0
 
LVL 5

Accepted Solution

by:
Isaac earned 168 total points
ID: 41749776
You would have to use the  web service operations of the User Profile Service of SharePoint to retrieve the information you need.  

Select "Data" --> Get External Data -> From Web Service --> From Soap web servce
In the data connection wizard enter the url of the user profile service
http://<YOUR SERVERNAME>/sitename/_vti_bin/UserProfileService.asmx

In the wizard, select "GetUserPropertyByAccountName" from the list of operations and go from there...

This can help you as well.

Hope that helps
0
 
LVL 16

Assisted Solution

by:Walter Curtis
Walter Curtis earned 332 total points
ID: 41750288
Great tip above, just remember that the User Profile Service is not always in sync with Active Directory. In other words, connecting to UPS is not going to be as up to date as connecting directly to AD. In a prefect world, they should be very close to being in sync, depending upon the sync schedule set up.

Good luck....
1
 
LVL 16

Expert Comment

by:Walter Curtis
ID: 41835957
Thanks, I appreciate the recognition of our effort.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ADMT 3.2 LAB Computer Migration not successful 2 47
schema master 5 27
Password Complexity 13 29
ACTIVE DIRECTORY 18 48
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question