SP.UserProfiles.UserProfilePropertiesForUser object (sp.userprofiles)

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

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

var object = new SP.UserProfiles.UserProfilePropertiesForUser(context, accountName, propertyNames)

Members

The UserProfilePropertiesForUser object has the following members.

Constructors

The UserProfilePropertiesForUser object has the following constructors.

Property

Description

UserProfilePropertiesForUser

Initializes a new instance of the UserProfilePropertiesForUser object.

Methods

The UserProfilePropertiesForUser object has the following methods.

Method

Description

getPropertyNames

Gets the user profile property names that are specified in the constructor.

Properties

The UserProfilePropertiesForUser object has the following properties.

Property

Description

accountName

Gets or sets the account name of the target user.

See also

Other resources

SP.UserProfiles namespace

How to: Retrieve user profile properties by using the JavaScript object model in SharePoint 2013