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 |
---|---|
Initializes a new instance of the PeopleManager object. |
Methods
The PeopleManager object has the following methods.
Method |
Description |
---|---|
Checks whether the specified user is following the current user. |
|
Checks whether the current user is following the specified user. |
|
Add the specified user to the current user's list of followed users. |
|
Add the specified tag to the current user's list of followed tags. |
|
Gets tags that the user is following. |
|
Gets the people who are following the specified user. |
|
Get the people who are following the current user. |
|
Gets user properties for the current user. |
|
Gets suggestions for who the current user might want to follow. |
|
Gets the people who the specified user is following. |
|
Gets the people who the current user is following. |
|
Gets user properties for the specified user. |
|
Gets the most popular tags. getTrendingTags is a static method. |
|
Gets the specified user profile properties for the specified user. |
|
Gets the specified user profile property for the specified user. |
|
Removes the specified user from the user's list of suggested people to follow. |
|
Checks whether the first user is following the second user. |
|
Uploads and sets the user profile picture. |
|
Remove the specified user from the current user's list of followed users. |
|
Remove the specified tag from the current user's list of followed tags. |
Properties
The PeopleManager object has the following properties.
Property |
Description |
---|---|
Gets the URL of the edit profile page for the current user. |
|
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
Work with user profiles in SharePoint 2013