Get information about a user
Resource URL
URL: user/information
Parameters
string username | Username |
string password | Password |
string userId | Trainingportal internal ID of the user |
| string userExternalId optional | External ID of the user. Either userId or userExternalId must be filled |
Return value
The method returns information about the user
| userId | Trainingportal id of the user. |
| userExternalId | External Id of the user. |
| firstName | First name |
| lastName | Last name |
| birhtDate | Birth date of the user, on format YYYY-MM-DD |
eMailAddress | E-mail address |
| phoneCountryCode | Country code for the user's phone number. may be prefixed with "+". Example: "+47" or "47" |
| phoneNumber | Phone number for the user, without country code |
| prefferedLanguage | ISO 639-1 (two letter abbreviation) for the user's preferred language. Currently supported languages are:
|
| addressLine1 | Address, line 1 |
| addressLine2 | Address, line 2 |
| zipCode | Address, zip Code |
| city | Address, city |
| country | Address, country |
| gender | Gender. MALE or FEMALE |
| portalSpecificAttributes | Portal specific attributes for the user. Each attribute will be a key/value pair with logicalId of the attribute as key. |
| userUsername | Username for the created user. |
| role | Role for the user. Empty if the user has no specific role. |
| status | The activation status of the user on the portal. Can be either “ACTIVE” or “NOT_ACTIVE” |
Example request
URL | |
| POST DATA | userExternalId=a001&username=username&password=secret |