Solved

Infopath form on sharepoint needs to connect with active directory

Posted on 2016-08-05
5
23 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 14

Assisted Solution

by:SneekCo
SneekCo earned 332 total points
Comment Utility
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
Comment Utility
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 14

Assisted Solution

by:SneekCo
SneekCo earned 332 total points
Comment Utility
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 14

Expert Comment

by:SneekCo
Comment Utility
Thanks, I appreciate the recognition of our effort.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now