How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

How to populate a sharepoint 2010 from the active directory.
I want a list of all the computers in the active directory,
another one with all users.
I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
Thanks
sz

While
the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
Here’s our plan:
Create the contacts list, and open in InfoPath
Create a data connection to the User Profile web service
Customize the form adding some text, a people picker and a button
Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
Rogers and Darvish Shadravan’s book Using
Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
From the list, click the List tab on the ribbon, then click Customize form:
So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
You can drag the button control a little larger to account for the text.
We should end up with something like this:
Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
Add a data connection to the User Profile Service
Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
For the operation, choose GetUserProfileByName.  Click Next.
Click Next on the next two screens.
On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
Tell the form to read the user from the people picker control
Click the Home tab on the ribbon.
Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
Leave the condition to default (none – rule runs when button is clicked).
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
(Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
and highlightAccountId.  Click Ok twice to get back to the Rules pane.
If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
picker control and inject into the AccountName query field of the User Profile Service data connection. 
Load the user profile service information for the chosen user
Click the Add button next to “Run these actions:”, and choose Query for data.
In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
Populate the contact form fields with existing user’s data
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
Data button, then Add. 
For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
under PropertyData.  Click Ok. 
In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
Publish.  Once it’s done, you will get confirmation:
Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

Similar Messages

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • Organized tags disappeared into an alphabetic list from the cloud.  How can I retrieve the original

    In Photoshop Elements 8 orgainzer my neatlyy organized tags, categories and subcategories have disappeared and in its place I find and alphabetical list of them all from the cloud?  How can I retrieve my original organized list?

    Are you talking about Places and Events categories from PSE8 catalog?
    If yes, please find them under Imported keyword tags category in the tags panel, present on the right hand side of the app.
    Thanks
    Andaleeb

  • Trying to update to iTunes 10.4.1 and I get a message "A network error occured while attempting to read from the file C:|Windows|Installer|iTunes.msi"  Running WIndows 7 with all updates done.  I  have never had an issue with iTunes updating before.  Anyo

    iTunes has tried to update itself and runs into an error and tells me to manually install.  When I d/l and run the iTunesSetup.exe file I always encounter the following error message...
    "A network error occured while attempting to read from the file C;|Windows|Installer|iTunes.msi" and iTunes does not update to iTunes 10.4.1.
    Anyone know what is creating this error message?  Thanks for the help...

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page): 
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    Hello,
    Try Mail>Preferences>Accounts icon>Account Information tab>Click on the Outgoing SMTP server drop down, choose edit Server list, highlight the old one & click Remove.
    (Such convolution is worthy of Windows® in my estimation)

  • I've a new account on iMac.  When composing an email the contact list does not show up on the bar.  WWhen I start keying in a name, it comes up with the address.  How do I engage the  contact list from the email?

    I've a new account on iMac.  When composing an email the contact list does not show up on the bar, which would allow me to select the persons I want to include on the distribution of the email.  When I start keying in a name in the email, it comes up with the person's address, which shows it is synced.  How do I engage the contact list from the email like I do on my old account (where a contact list icon shows up, along with the "attach" and other icons) ?

    With the New Message window open, go to the View menu and select "Customize Toolbar...".
    In the screen that opens, drag the item labelled "Address" into the Toolbar area of the New Message window, then click the "Done" button.
    That item should be then added to the Toolbar for the New Message window.
    Note that the main Mail window and the New Message window (as well as the separate message window if you open a message that way) use different toolbars - the settings/inclusions for one do not carry over to another.

  • How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
    Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
    The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message.

  • How do I remove an old file from the Finder Favorites list?

    Good Afternoon.
    I have a shiney new MBPro with 10.7.1.
    On my old machine running Snow Leopard, I had two .xls files I used often that I had dragged to the left side into the favorites. The truth is, I hadn't used them in months, but hadn't bothered to remove them. Then about ten days ago, the Bad Thing happened, and I had to replace my laptop rather suddenly. The nice folks at the Apple store transferred all the data and I was off an running in just a few hours.
    Now, I thought to myself, I should remove those two files since I don't use them any more. But how?
    If I click on them nothing happens. If I right-click on them, nothing happens. I can't drag them out because they don't drag and they aren't listed on the list of favorites that can be toggled on and off in preferences.
    I checked. The files did still exist but deleting them didn't remove their names from the favorites list.
    Any suggestions as to how to remove these two .xls files from the Finder's Favorites list?
    Thanks. A picture is below.

    The msot amazing person ,just posted an answer to my other question which worked here too.
    Three cheers for Kappy!
    Just hold down the CMD key and drag them off. How simple is that?? They didn't klnow this at the Genius bar when I asked this morning. I am amazed.
    I wish I knew how to send Kappy cookies.
    Thank you Kappy.

  • After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  WRA

    After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle to make room for other audiobooks?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  These books, incidentally do not appear in the ITunes screen.  WRA

    Select the iPod shuffle in the iTunes sidebar (under DEVICES).  If this is a current 4th (or 3rd) gen iPod shuffle, you should be able to see the contents of the shuffle by type, intented under the shuffle's name (still in the sidebar).  Select Music or Audiobooks (not sure where those items from the library will be listed).  The items will be listed to the right, for each category.  Find the items, select, and delete.
    It's on page 20 of the manual
    http://manuals.info.apple.com/en_US/iPod_shuffle_4thgen_User_Guide.pdf
    NOTE:  If this is an 1st or 2nd gen iPod shuffle, select the iPod shuffle in the iTunes sidebar (under DEVICES).  Over to the right, go to the Contents tab, where the items are listed.  Select and delete them from this list.
    I find it more convenient to make a playlist in iTunes with things I want to put on the shuffle.  I then set up automatic syncing (or use autofill) to have iTunes load the shuffle from that playlist, automatically.

  • How can i print lists from the reminder app

    Does anybody know how to print lists from the Reminder app ?

    There's no print menu in Reminders.
    You can take a screen shot and print that.  Hit command-shift-3 when Reminders is showing, then hit the spacebar, and then click on the Reminders window and you'll get a screen shot on your desktop.  You can then open that in Preview and print from there.
    A better solution though is to just use an iPhone and sync, and have your reminders with you :-)

  • How do I delete old email addresses from the pop up list that comes up when I put a letter into the "To" box. These addresses are not in my address book.

    How do I delete old email addresses from the pop-up list that comes up when I put a letter into the "To" box? They are not in my Address Book.  Wrong addresses get in the way and I sometimes select the wrong one.

    Edit the list the comes up when you go to the Window menu and select "Previous Recipients".
    charlie

  • How can i import my contact list from the Nokia Suite to my I phone?

    how can i import my contact list from the Nokia Suite to my I phone?

    Oscar, keep in mind that my suggestion could not be the best one.
    I have a copy of Nokia suite on my Windows XP partition on my Mac, just to test it.
    The second icon on the upper row explains as a syncronisation with Outlook.
    Try to do it and later you should use the iClod manager from Apple and Sync Outlook to ìiClod and to any iPhone iPod and so on.

  • How to delete a list from the reading list

    How to delete a list from the reading list

    I assume that you mean in Safari, in which case just swipe across it's name in reading list and you should get a Delete button appear on it.

  • How can I  transfer my contacts list from the laptop to iPhone 5s ?

    How can I  transfer my contacts list from the laptop to iPhone 5s ?
    Thanks,

    I got this information !!

Maybe you are looking for