HP Anywhere 10.11 API Reference
Show:

HPA.Profile

Module: HPA

Available since HP Anywhere 10.00

Retrieve the current (logged in) user information.

Usage example:

myView.setUserName( HPA.Profile.getInfo().displayName );

Methods

Methods

getInfo

() Object

Available since HP Anywhere 10.00

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.