Share via


DataSource.SetDefaultImportAccount Method

Sets the account for the import.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Sub SetDefaultImportAccount ( _
    UserID As String, _
    Password As String _
)
'Usage
Dim instance As DataSource
Dim UserID As String
Dim Password As String

instance.SetDefaultImportAccount(UserID, _
    Password)
public void SetDefaultImportAccount(
    string UserID,
    string Password
)

Parameters

Remarks

Because the account is used to import from all defined domain controllers, this account needs permission from all defined domain controllers.

For more information about the choice of domain controller for a data source from which you want to import the user profile, see DataSource.Options. For more information about data sources and importing user profiles, see Importing User Profiles.

See Also

Reference

DataSource Class

DataSource Members

Microsoft.Office.Server.UserProfiles Namespace