Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there another way to push data from Active Directory to profile DB without using UPS. i am working on developer machine and just need one time push from AD to profile DB. Is there an alternate to UPS. The UPS thing on SP2010 RTM is a mess.

share|improve this question
    
Just out of curiosity, why would you still use SP2010 RTM? You should patch up SharePoint at least to lates service pack. Lots and lots of improvements especially on UPS in those patches. Also what specifically is "a mess" on your system? When configured correctly UPA/UPS/FIM runs very well indeed! –  Anders Rask Feb 12 '12 at 14:53
    
@AndersRask: But my dev is a single farm with full SQL. I thought SQL needs to be on different server apart from wfe/ca/app/index etc server in order to setup ups. –  Steve Golado Feb 13 '12 at 2:20
    
I ended up installing SP1 and CU. Then tried the whole thing with UPS and now seems to be working. –  Steve Golado Feb 13 '12 at 20:21

1 Answer 1

up vote 2 down vote accepted

You could create user profiles programmatically using UserProfileManager.CreateUserProfile method.

You can leverage this method either by using Console Application, or by creating a PowerShell script. I'd prefer the latter approach.

PowerShell code for creating one profile would look something like this:

$serviceContext = Get-SPServiceContext http://localhost
$manager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)

$profile = $manager.CreateUserProfile("domain\helloworld")
$profile.DisplayName = "Hello World"
$profile.Commit()

Actually, I've even found a post where a similar script is already implemented:

This solution will allow you to add user profiles from an XML file. However, obviously it is also possible to pull them from AD.

P.S. I haven't tried this particular script, but recently I used a PowerShell script to populate Organization profiles, and all worked fine.

share|improve this answer
    
so there are few more challenges: 1) Export AD uses with department,etc. in XML 2) Go through xml and make sure it's in correct format. –  Steve Golado Feb 12 '12 at 17:09
    
Found this link (blogs.architectingconnectedsystems.com/blogs/cjg/archive/2009/…) where I should be able to import AD users to SP with powershell. I ran it but keep getting "Multiple ambiguous overloads found for GetUserProfile and the arugument count: 1. $up=$pmanager.GetUserProfile($prop.cn) –  Steve Golado Feb 12 '12 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.