Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Get a user's employments

Resource URL

URL: user/employments


Parameters

string username
required

Username

string password
required

Password

string userId
optional

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

employeeNumberEmployee number. May be empty
statusACTIVE, INACTIVE or NEEDS_CONFIRMATION. May be empty if the integration user does not have rights to see this status


Example request

URL

https://www.trainingportal.no/mintra/rest/user/employments

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":""
}
]
}