Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

EXPORT - Get legal roles for a user

Resource URL

URL: user/export/legalRoles


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

userLegalRolesA list containing legal roles data for a specific user
userLegalRoles[].idID of the user
userLegalRoles[].externalIdExternal ID of the user

userLegalRoles[].legalRoles

A list of strings representing the legal roles for the user
pageNumberNumber of the current page
pageSizeSize of the current page

Example request

URL

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

POST DATAusername=username&password=secret&pageNumber=10&pageSize=20
{
"userLegalRoles": [
{ "id": 123, "externalId": "abc", "legalRoles": ["READONLY_MANAGER","COMPANY_ADMINISTRATOR","COURSE_ADMINISTRATOR","MANAGER","CONTENT_ADMINISTRATOR","USER_ADMINISTRATOR","PORTAL_ADMINISTRATOR"]},
{ "id": 456, "externalId": "def", "legalRoles": []}
],
"pageNumber": 10,
"pageSize": 20
}