Set role for a user
Resource URL
URL: user/setRole
Parameters
string username | Username |
string password | Password |
string userId | 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:
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 | |
POST DATA | userExternalId=U101&role=MANAGER&username=username&password=secret |
{ "status":"OK" }