SP.UserProfiles.UserProfilePropertiesForUser.accountName property (sp.userprofiles)

Gets or sets the account name of the target user.

Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.UserProfiles.UserProfilePropertiesForUser.get_accountName()
SP.UserProfiles.UserProfilePropertiesForUser.set_accountName(value)

Return value

String
The account name of the target user.

See also

Other resources

UserProfilePropertiesForUser

How to: Retrieve user profile properties by using the JavaScript object model in SharePoint 2013