Get a user's employments
Resource URL
URL: user/employments
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 a list of companies the user is employed in. Each item in the list has the following properties:
name | Name of the company |
employeeNumber | Employee number. May be empty |
status | ACTIVE, INACTIVE or NEEDS_CONFIRMATION. May be empty if the integration user does not have rights to see this status |
Example request
URL | |
POST DATA | userExternalId=a001&username=username&password=secret |
{
"companies": [
{ "name":"Oil and Gas AS",
"employeeNumber":"001",
"status":"ACTIVE"
},
{ "name":"Rent a worker AS",
"employeeNumber":"",
"status":""
}
]
}