Newer Version Available

This content describes an older version of this product. View Latest

UserProfiles Class

Access user profile data. The user profile data populates the profile page (also called the Chatter profile page). This data includes user information (such as address, manager, and phone number), some user capabilities (permissions), and a set of subtab apps, which are custom tabs on the profile page.

Namespace

ConnectApi

UserProfiles Methods

The following are methods for UserProfiles. All methods are static.

getUserProfile(String, String)

Returns the user profile of the context user.

API Version

29.0

Signature

public static ConnectApi.UserProfile getUserProfile(String communityId, String userId)

Parameters

communityId
Type: String
Use either the ID for a community, internal, or null.
userId
Type: String
The ID for a user.

Return Value

Type: ConnectApi.UserProfile