UserProfileManager.CreateUserProfile method (String)

Creates a user profile with the specified account name.

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

Syntax

'Declaration
Public Function CreateUserProfile ( _
    strAccountName As String _
) As UserProfile
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
Dim returnValue As UserProfile

returnValue = instance.CreateUserProfile(strAccountName)
public UserProfile CreateUserProfile(
    string strAccountName
)

Parameters

  • strAccountName
    Type: System.String

    The account name of the user profile.

Return value

Type: Microsoft.Office.Server.UserProfiles.UserProfile
that represents a user profile with the specified account name.

Remarks

To create your own user profile you must have PortalRight.UseSubscription permission. To create a user profile for another user you must have PortalRight.ManageUserProfile permission. To create your own user profile on the Web you must pass a string containing "UsePersonalFeatures".

See also

Reference

UserProfileManager class

UserProfileManager members

CreateUserProfile overload

Microsoft.Office.Server.UserProfiles namespace