CreateUserProfile(String) Method

The CreateUserProfile method of the UserProfileManager class creates a user profile with the specified account name.

Parameters

strAccountName   The account name of the user profile.

Return Value

Microsoft.SharePoint.Portal.UserProfiles.UserProfileUserProfile 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".

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security