Share via


UserProfileService.CreateUserProfileByAccountName method

Creates a user profile for the specified account name.

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

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

WebSvcUserProfileService namespace