UserProfileManager.CreateUserProfile UserProfileManager.CreateUserProfile UserProfileManager.CreateUserProfile Method

Definition

Overloads

CreateUserProfile(String, String) CreateUserProfile(String, String) CreateUserProfile(String, String)

Creates a user profile with the specified account name and preferred name.

CreateUserProfile(String) CreateUserProfile(String) CreateUserProfile(String)

Creates a user profile with the specified account name.

CreateUserProfile() CreateUserProfile() CreateUserProfile()

Creates a user profile.

CreateUserProfile(String, String) CreateUserProfile(String, String) CreateUserProfile(String, String)

Creates a user profile with the specified account name and preferred name.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ CreateUserProfile(System::String ^ strAccountName, System::String ^ strPreferredName);
public Microsoft.Office.Server.UserProfiles.UserProfile CreateUserProfile (string strAccountName, string strPreferredName);
Public Function CreateUserProfile (strAccountName As String, strPreferredName As String) As UserProfile
Parameters
strAccountName
String String String

The account name of the user profile.

strPreferredName
String String String

The preferred name of the user profile.

Returns

that represents a user profile with the specified account name and preferred 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".

CreateUserProfile(String) CreateUserProfile(String) CreateUserProfile(String)

Creates a user profile with the specified account name.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ CreateUserProfile(System::String ^ strAccountName);
public Microsoft.Office.Server.UserProfiles.UserProfile CreateUserProfile (string strAccountName);
Public Function CreateUserProfile (strAccountName As String) As UserProfile
Parameters
strAccountName
String String String

The account name of the user profile.

Returns

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".

CreateUserProfile() CreateUserProfile() CreateUserProfile()

Creates a user profile.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ CreateUserProfile();
public Microsoft.Office.Server.UserProfiles.UserProfile CreateUserProfile ();
Public Function CreateUserProfile () As UserProfile
Returns

that represents a user profile.

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".

Applies to