UserProfileService.CreateUserProfileByAccountName method

Creates a user profile for the specified account name.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/CreateUserProfileByAccountName", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public PropertyData[] CreateUserProfileByAccountName(
	string accountName
)

Parameters

accountName
Type: System.String

The account name of the user.

Return value

Type: []
An array that contains the properties of the newly created user profile.

ExceptionCondition
SoapException

The user profile cannot be created.

This method creates a new user profile for the user specified by the accountName parameter, and returns the list of user profile properties.

Show: