Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Set role for a user

Resource URL

URL: user/setRole


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
string role
optional

Role the user should have. Must be one of the following values:

  • PORTAL_ADMINISTRATOR
  • USER_ADMINISTRATOR
  • COURSE_ADMINISTRATOR
  • CONTENT_ADMINISTRATOR
  • MANAGER
  • READONLY_MANAGER

If an empty string is passed for this parameter, the user will be assigned to the "student" role (i.e. no particular role)

Read more about roles on Trainingportal here.


Return value

status

OK


Example request

URL

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

POST DATA

userExternalId=U101&role=MANAGER&username=username&password=secret

{
 "status":"OK"
}