SP.UserProfiles.PersonProperties.accountName property (sp.userprofiles)
Gets the user's account name.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UserProfiles.PersonProperties.get_accountName()
Return value
String
The user's account name.