共用方式為


SP.UserProfiles 命名空間 (sp.userprofiles)

取得使用者設定檔和使用者屬性的自訂解決方案SharePoint 2013和SharePoint Add-insSP.UserProfiles命名空間中使用PeopleManager和其他物件。

**前次修改時間:**2015年3月9日

**適用於:**apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

成員

在 SP. SP.UserProfiles命名空間UserProfiles.js JavaScript文件庫包含下列公用物件及列舉。

物件

物件

描述

HashTag

Represents a hash tag in the collection of trending tags.

HashTagCollection

Represents a collection of hash tags in microblog posts. This collection is returned by the getTrendingTags method.

PeopleManager

Provides methods for operations related to people.

PersonProperties

Represents user properties.

ProfileLoader

Provides an alternate entry point to user profiles rather than calling methods directly.

UserProfile

Represents a client-side user profile for a person.

UserProfilePropertiesForUser

Represents a set of user profile properties for a specified user.

列舉

列舉

描述

ChangeTypes

Specifies types of changes made in the user profile store.

ObjectTypes

Specifies types of user-related objects that can be changed in the user profile store.

PersonalSiteCapabilities

Specifies the capabilities of a personal site.

PersonalSiteInstantiationState

Specifies an exception or status code for the state of a personal site instantiation.

在 SP.內部 APIUserProfiles 命名空間

從SP.UserProfiles命名空間的下列項目移除這個參考 (英文),因為其僅限內部使用,且不適合直接從您的程式碼內直接使用:

  • Followed物件及列舉。您可以使用SocialFollowingManager物件與相關的 API 中SP.存取下列人員功能與下列內容功能社交命名空間。

    • FollowedContent

    • FollowedItem

    • FollowedItemData

    • FollowResult

    • FollowedContentExceptionCode

    • FollowedContentQueryOptions

    • FollowedItemType

    • FollowedStatus

    • FollowResultType

  • ProfileImageStore物件

  • 內部建構函式

  • initPropertiesFromJson方法、 writeToXml方法、 newObject方法、 childItemType屬性及typeId屬性

  • **<Object>PropertyNames物件及<Object>**ObjectPropertyNames物件

請參閱

其他資源

SharePoint User Profiles JavaScript Reference (sp.userprofiles.js)

在 SharePoint 2013 運用使用者設定檔

在 SharePoint 2013 追蹤人員