User Profile Default Access Account

Posted on Posted in SharePoint 2007, STSADM Commands

This ended up being one of those simple commands to create that took way to long to figure out how to create. Fortunately though there is an API available for setting this property (unlike most of the profile import related tasks such as the timer jobs). You can set this manually by going here: Shared Services Administration: SSPName > User Profile and Properties > Configure Profile Import. Or you can do the same thing programmatically using UserProfileConfigManager object – you need to get a DataSource object from an instance of the UserProfileConfigManager and then set the value using the SetDefaultImportAccount() method of the DataSource object:

   1: public static void UpdateAccount(string sspname, string username, string password)

2 thoughts on “User Profile Default Access Account

  1. Hi Gary,
    First off I want to say thanks for the hard work you have put into these STSADM extensions. I truly appreciate them.
    I was wondering if you could create a new STSADM command to add a Custom Source under Configure Profile Import. Back in the day we had to use a different NETBIOS name on AD creation because we were collapsing an NT domain that already had the prefix of the DNS namespace.
    For example:
    On AD creation we typed: ntdom.com and the wizard wanted to pick NTDOM for the NETBIOS backward compatible name but NTDOM was already as a NT domain namespace. So we picked let’s say NEWNTDOM as the NETBIOS name and kept the FQDN as ntdom.com. A bug in SharePoint gets introduced when it assumes the NETBIOS name is the DNS prefix word1(NTDOM) of ntdom.com. So under Import Profile data reads: Current domain (NTDOM) which is wrong. Bug Bug bug.

    So we have to do a Custom source as:
    NAME: NEWNTDOM, Type: Active Directory, Source: Auto Discover, Search Base/DN: dc=ntdom,dc=com.

    I want to automate this step so we do not have to do the GUI dance. Is it possible to knock off this new STSADM command? How about gl-setimportconnection ?
    Thanks!
    Jim

  2. Thanks for feedback! Unfortunately I don’t have time to create commands unless I need them for an issue I’m facing. If you really need me to help you with creating this it would have to be done as billable work – I’ll be happy to write you up a quote if you’re interested.

Leave a Reply

Your email address will not be published. Required fields are marked *

*