SP.UserProfiles.PeopleManager object (sp.userprofiles)

Provides methods for operations related to people.

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

var object = new SP.UserProfiles.PeopleManager(context)

Members

Constructors

The PeopleManager object has the following constructors.

Property

Description

PeopleManager

Initializes a new instance of the PeopleManager object.

Methods

The PeopleManager object has the following methods.

Method

Description

amIFollowedBy

Checks whether the specified user is following the current user.

amIFollowing

Checks whether the current user is following the specified user.

follow

Add the specified user to the current user's list of followed users.

followTag

Add the specified tag to the current user's list of followed tags.

getFollowedTags

Gets tags that the user is following.

getFollowersFor

Gets the people who are following the specified user.

getMyFollowers

Get the people who are following the current user.

getMyProperties

Gets user properties for the current user.

getMySuggestions

Gets suggestions for who the current user might want to follow.

getPeopleFollowedBy

Gets the people who the specified user is following.

getPeopleFollowedByMe

Gets the people who the current user is following.

getPropertiesFor

Gets user properties for the specified user.

getTrendingTags

Gets the most popular tags. getTrendingTags is a static method.

getUserProfilePropertiesFor

Gets the specified user profile properties for the specified user.

getUserProfilePropertyFor

Gets the specified user profile property for the specified user.

hideSuggestion

Removes the specified user from the user's list of suggested people to follow.

isFollowing

Checks whether the first user is following the second user.

setMyProfilePicture

Uploads and sets the user profile picture.

stopFollowing

Remove the specified user from the current user's list of followed users.

stopFollowingTag

Remove the specified tag from the current user's list of followed tags.

Properties

The PeopleManager object has the following properties.

Property

Description

editProfileLink

Gets the URL of the edit profile page for the current user.

isMyPeopleListPublic

Gets a Boolean value that indicates whether the current user's People I'm Following list is public.

Remarks

The SocialFollowingManager object is the recommended object for performing Following People and Following Content tasks. However, PeopleManager provides some methods that SocialFollowingManager doesn't. For more information, see Common programming tasks for following people.

See also

Other resources

SP.UserProfiles namespace

Work with user profiles in SharePoint 2013

Follow people in SharePoint 2013

Follow content in SharePoint 2013