This documentation is archived and is not being maintained.

SP.UserProfiles.PeopleManager Methods (sp.userprofiles)

SharePoint 2013

The PeopleManager object has the following methods.

Last modified: June 25, 2013

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

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.

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.

setMyProfilePicture

Uploads and sets the user profile picture.

Other resources

Show: