LearnUpon logo LearnUpon automation · runs weekly

Offboard leavers from LearnUpon training

When someone leaves, their LearnUpon account keeps showing up in group reports and overdue lists until an admin cleans it up, and that step is easy to forget.

Cotlet does it in your own LearnUpon account with list_users, get_user, unenroll_users and disable_user, called by your AI agent, an n8n workflow or a script.

Hosted · nothing to install or maintain

Can LearnUpon do this on its own?

LearnUpon offers this in the interface, in the batch CSV upload (an enabled column set to No disables accounts) and in the REST API with PUT /users/{id} and DELETE /enrollments/{id} (checked 20 Oct 2026). Dynamic rules unenroll people only when a rule removes them from a group. The official MCP server is described as reporting only.

How you do it in LearnUpon today

  1. The admin opens Users, finds the person and turns off Login enabled under Basic Info, then selects Save.
  2. For open courses, the admin goes to Courses > the course > Enrollments, selects the learners and chooses Unenroll, then confirms with Yes.
  3. If the admin removes a user from a group by hand, the user stays enrolled on the group's courses until the admin unenrolls them too.
  4. Deleting is a separate choice: Users > the user's name > Delete User, which keeps the account for 30 days before personal data is removed.
  5. The checklist repeats for every leaver, across every course the person was enrolled on.

How to offboard leavers from LearnUpon training

Prompt

These 3 people left the company. Unenroll them from unfinished courses and disable their LearnUpon accounts. Do not delete anything.
  1. 01

    Find each leaver

    list_users looks each name or email up, and get_user returns the groups and enrollments of that account. A name that matches two accounts is listed for you instead of guessed.

  2. 02

    Unenroll from open courses

    unenroll_users runs per course for the enrollments that are Not Started or In Progress, so completed courses stay in the training record. Unenrolling is checked with you by default, and a manager account needs the permission to unenroll users, which is off by default.

  3. 03

    Disable, never delete

    disable_user sets Login enabled to off. Enrollments and training history stay intact, and an admin can turn the account back on, so the call is reversible.

  4. 04

    Report what is left

    The agent reads get_user again for each leaver and reports any course that still shows an active enrollment.

What you get back

Example data

Leavers: 3
Unenrolled from open courses: 7 enrollments
Kept completed courses: 11
Accounts disabled: 3 (Login enabled off)
Still enrolled: 0

Other ways to ask

  • Every Friday, disable accounts on this list from HR and unenroll them from open courses.
  • Only unenroll these 3 people from Forklift safety and leave their accounts as they are.
  • Show me every user who has not logged in for a year, and do nothing yet.

What LearnUpon allows, and what to know first

  • Disabling an account keeps its data, enrollments and training history until an admin enables it again or deletes it.
  • Batch CSV upload can disable accounts but cannot delete them.
  • A deleted account stays for 30 days and disappears from groups, enrollments and reports; after 30 days personal data is removed and Support cannot restore it.
  • A manager can disable or delete only users in their own groups, and the delete permission is off by default.
  • Dynamic rules unenroll users automatically when a rule removes them from a group, while a manual group removal does not.

unenroll_users and disable_user ask for your OK by default. To run it weekly without you, switch confirmation off for those tools in your dashboard.

Sources: LearnUpon Help: Users, disable and delete user accounts · LearnUpon Help: Enrollments, unenroll and set complete with bulk actions · LearnUpon Help: Managers, set permissions to manage groups

Call disable_user from a script

curl

curl -X POST https://cotlet.dev/api/v1/learnupon/users/51872/disable \
  -H "Authorization: Bearer $COTLET_API_KEY"

Example response

{
  "user_id": "51872",
  "login_enabled": false
}

MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is learnupon_write → disable_user. Example data.

Schedule it in n8n, Make, Zapier or cron

LearnUpon tools this automation uses

Cotlet LearnUpon tools used to offboard leavers from LearnUpon training
Tool Parameters
list_users query, group_id, status, cursor
get_user user_id
unenroll_users course_id, user_ids
disable_user user_id
All 14 LearnUpon tools with descriptions

Frequently asked questions

Is it safe to connect LearnUpon to Cotlet?

Yes. You sign in to LearnUpon yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get LearnUpon once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.

Give your agent access to LearnUpon.

Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with LearnUpon.