HPA.Profile
Retrieve the current (logged in) user information.
Usage example:
myView.setUserName( HPA.Profile.getInfo().displayName );
Methods
Methods
getInfo
()
Object
Retrieve current user information.
Returns:
Object:
An object with the following properties (all of type String unless noted otherwise):
- id: ID of the user, may be used for referring to user-related data on backend systems, mainly when SSO is used as the authentication mode.
- origin: origin
- displayName: Display name.
- jobTitle: Job title.
- mobileImageResource: URL to user image.
- thumbnailImageResource: URL to user image.
- smallImageResource: URL to user image.
- emails: (Array of Strings) List of emails.