UserProfile class

SharePoint Online

Represents a client-side user profile for a person.


Namespace:  Microsoft.SharePoint.Client.UserProfiles
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

public class UserProfile : ClientObject

The client-side UserProfile object provides methods you can use to create a personal site for the current user. However, it does not contain the user properties that the server-side UserProfile object contains. To access user properties from client-side code, use the one of the following methods from the PeopleManager object: GetMyProperties and GetPropertiesFor to retrieve all properties (which are stored in the PersonProperties.UserProfileProperties property) or GetUserProfilePropertiesFor and GetUserProfilePropertyFor to retrieve specific properties.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.