Share via


UserProfileService.CreateUserProfileByAccountName Method

Creates a user profile for the specified account name.

Namespace:  [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/CreateUserProfileByAccountName", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CreateUserProfileByAccountName ( _
    accountName As String _
) As PropertyData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As PropertyData()

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

Parameters

Return Value

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

Exceptions

Exception Condition
SoapException

The user profile cannot be created.

Remarks

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

See Also

Reference

UserProfileService Class

UserProfileService Members

UserProfileService Web Service