EXPORT - Get legal roles for a user
Resource URL
URL: user/export/legalRoles
Parameters
string username | Username |
string password | Password |
int pageNumber | Page number to retrieve |
int pageSize | Maximum number of elements on each page |
Return value
userLegalRoles | A list containing legal roles data for a specific user |
userLegalRoles[].id | ID of the user |
userLegalRoles[].externalId | External ID of the user |
userLegalRoles[].legalRoles | A list of strings representing the legal roles for the user |
pageNumber | Number of the current page |
pageSize | Size of the current page |
Example request
URL | https://www.trainingportal.no/mintra/rest/user/export/legalRoles |
POST DATA | username=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
}