SP.UserProfiles.PeopleManager.follow Method (sp.userprofiles)
Add the specified user to the current user's list of followed users.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
SP.UserProfiles.PeopleManager.follow(accountName)
Parameters
- accountName
String
The account name of the specified user.
Remarks
The recommended API to use for this task is SocialFollowingManager.follow.