Freigeben über


SP.UserProfiles.PeopleManager-Objekt (sp.userprofiles)

Stellt Methoden für Vorgänge bereit, die sich auf Personen beziehen.

**Letzte Änderung:**Montag, 9. März 2015

**Gilt für:**apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

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

Member

Konstruktoren

Das PeopleManager-Objekt verfügt über den folgenden Konstruktor.

Eigenschaft

Beschreibung

PeopleManager

Initializes a new instance of the PeopleManager object.

Methoden

Das PeopleManager-Objekt verfügt über die folgenden Methoden.

Methode

Beschreibung

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.

Eigenschaften

Das PeopleManager-Objekt verfügt über die folgenden Eigenschaften.

Eigenschaft

Beschreibung

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.

Hinweise

Das SocialFollowingManager-Objekt ist das empfohlene Objekt für Following People- und Following Content-Aufgaben. PeopleManager stellt jedoch einige Methoden bereit, die SocialFollowingManager nicht hat. Weitere Informationen finden Sie unter Allgemeine Programmierungsaufgaben zum Folgen von Personen.

Siehe auch

Weitere Ressourcen

SP.UserProfiles-Namespace

Arbeiten mit Benutzerprofilen in SharePoint 2013

Folgen von Personen in SharePoint 2013

Folgen von Inhalten in SharePoint 2013