Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

EXPORT - Get a user's organization units

Resource URL

URL: user/export/organizationUnits


Parameters

string username
required

Username

string password
required

Password

int pageNumber
optional

Page number to retrieve

int pageSize
optional

Maximum number of elements on each page


Return value

organizationUnitRegistrationsA list containing organization unit registrations for a specific user
organizationUnitRegistrations[].idID of the user
organizationUnitRegistrations[].externalIdExternal ID of the user
organizationUnitRegistrations[].registrationsOrganization units registrations for the user

organizationUnitRegistrations[].registrations[].name

Name of the unit

organizationUnitRegistrations[].registrations[].externalIdExternal ID of the unit
organizationUnitRegistrations[].registrations[].status

Status for a relation between a user and a organization unit.

One of values: ACTIVE, INACTIVE or NEEDS_CONFIRMATION

pageNumberNumber of the current page
pageSizeSize of the current page


Example request

URL

https://www.trainingportal.no/mintra/rest/user/export/organizationUnits

POST DATA

username=username&password=secret&pageNumber=10&pageSize=20

{
"organizationUnitRegistrations": [
{
"id": 123,
"externalId: "abc",
"registrations": [
{
"name":"Technical",
"externalId":"tech001",
"status":"ACTIVE"
},
{
"name":"HR",
"externalId":"hr001",
"status":"NEEDS_CONFIRMATION"
}
]
}
],
"pageNumber": 10,
"pageSize": 20
}