Add users to group
Add existing or new users to a group by email.
MCP tool learnupon_write → add_users_to_group
write Confirm
Adds the users to one group. An email without an account in the portal gets an invite and stays pending until it is accepted. With process_enrollments true, users are enrolled on courses assigned to the group. Removing a user from a group by hand does not unenroll them. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| group_id string required | string | Group id from list_groups. |
| emails array required | array | Email addresses to add. |
| process_enrollments boolean | boolean | Enroll on courses assigned to the group. Default: true. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "learnupon_write",
"arguments": {
"operation": "add_users_to_group",
"arguments": {
"group_id": "group_8c41d2",
"emails": "jane@example.com"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"group_id": "4902",
"added": 2,
"invited": 1
},
"isError": false
}