Sharepoint - Active Directory -- pull in the Active directory usernames for a form dropdown

1. I am building a workflow using sharepoint designer and InfoPath forms
2. It is for a car request form (workflow) for my company
3. I want to have a dropdown list automatically populated with usernames from the active directory database.
4. Related fields like the email associated with the chosen username must also be available


I am a newbie at sharepoint and active directory

what do I need to do or  learn to make this happen?

What assistance do I need from the network architects ?
LBecerraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
IsaacConnect With a Mentor SharePoint Client Side DeveloperCommented:
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
 
Walter CurtisSharePoint AEDCommented:
SharePoint has a builtin column type name "Person/Group". It provide much better functionality than a drop down list. A drop down list will become very annoying to users when it reaches about 40 users and above. The "Person/Group" column has a search (lookup), a name check button as well as displaying the name and email (when in the search box.)

Give that a try maybe...
0
 
LBecerraAuthor Commented:
no thanks we need the AD to populate the InfoPath form automatically based on windows authentication
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Walter CurtisSharePoint AEDCommented:
There is nothing out of the box to do that because no one would ever list all of their AD users in a pull down if there AD is any size at all.

How many users do you have?
0
 
LBecerraAuthor Commented:
firstly, I want only 1 name to appear on the form. the name of the user logged on and his related info like email

see attached - car request form
car-request-.JPG
0
 
Walter CurtisSharePoint AEDCommented:
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.

Good Luck...
0
 
LBecerraAuthor Commented:
answered the question directly
0
All Courses

From novice to tech pro — start learning today.