Create user
Add one user to the portal with a role and department.
MCP tool absorb_lms_write → create_user
Creates a user through the Add User action of the Users report. The account is a Learner unless you pass roles; Absorb allows several roles per user (Learner, Reviewer, Manager, Instructor, Creator, Administrator). Fields that Absorb marks as required must be given, and the tool returns an error naming any that are missing. It creates an account other people sign in with. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| first_name string required | string | First name. |
| last_name string required | string | Last name. |
| username string required | string | Login name. |
| email string | string | Email address. |
| department string | string | Department name. |
| roles array | array | learner (default), reviewer, manager, instructor, creator or administrator. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "absorb_lms_write",
"arguments": {
"operation": "create_user",
"arguments": {
"first_name": "Sofia",
"last_name": "Marin",
"username": "smarin",
"email": "sofia.marin@example.com",
"department": "Finance",
"roles": [
"learner"
]
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"user_id": "7d2e9b41-3a60-4e8c-b5d7-1f4a8c6e9303",
"name": "Sofia Marin",
"username": "smarin",
"department": "Finance",
"roles": [
"Learner"
],
"status": "Active"
},
"isError": false
}