iSpring Learn (iSpring LMS) automation · runs weekly
Deactivate iSpring Learn accounts of leavers
HR sends the list of people who left, and every account that stays active keeps a seat in iSpring Learn and still lets a former employee sign in.
Cotlet does it in your own iSpring Learn (iSpring LMS) account with list_users and deactivate_users, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can iSpring Learn (iSpring LMS) do this on its own?
iSpring Learn deactivates users by hand, in bulk from the Users list, by Excel import, by schedule, or through Microsoft Entra ID sync, and has an API call for it on the Business subscription (checked 20 Oct 2026). Zapier has Deactivate Users and Terminate Users actions. None of them matches a plain list of emails against the account and reports who was not found.
How you do it in iSpring Learn (iSpring LMS) today
- An administrator opens the Users section and finds each person by name, login or email.
- On the user's card the administrator clicks Change next to the user status, chooses Deactivate, and picks Deactivate now or Schedule deactivation with a date.
- For many people, the administrator selects them in the Users list and chooses Deactivate, or sets Inactive in the Status column of an Excel import.
- With Microsoft Entra ID sync, deleting the user there deactivates the iSpring Learn account, but without that sync the list is worked by hand.
- A name that was typed wrong or an email with another spelling is simply not found, and nothing warns the administrator that a leaver stayed active.
How to deactivate iSpring Learn accounts of leavers
Here are the emails of people who left this week. Deactivate their iSpring Learn accounts today, skip anyone who is an administrator, and tell me who was not found. - 01
Match each email
list_users runs with the email as query and status active. An address with no match goes on the not found list, and an address with two matches goes on a list for you, so the wrong person is never deactivated.
- 02
Skip the accounts you named
The agent leaves out administrators and anyone you excluded in the prompt. The Account Owner cannot be deactivated at all, and a Department Administrator can deactivate only users in their own departments.
- 03
Choose now or a date
With no date the agent deactivates today. With "on Friday" it passes deactivate_on, and iSpring Learn deactivates the account on that date; a scheduled deactivation can be cancelled in the app.
- 04
Deactivate in one call
deactivate_users takes the whole list and waits for your OK by default. The accounts keep their statistics, so completed courses still show in reports.
- 05
Check the result
The agent reads the users again with status inactive and confirms that each one is there. It reports anyone who is still active.
What you get back
Leavers list: 6 emails
Deactivated 4, e.g. Maria Silva (Support), Jake Ortiz (Sales)
Not found 1: m.garcia@example.com
Skipped 1: Account Administrator, left for you Other ways to ask
- Deactivate everyone whose last day is before the 1st, on the 1st.
- Show which accounts in Sales have not signed in for a month, but deactivate none.
- Deactivate the people on this list and reactivate Tom Becker, who came back.
What iSpring Learn (iSpring LMS) allows, and what to know first
- Inactive users cannot sign in, receive notifications, open their courses or be assigned to a course.
- Deactivating keeps a user's statistics for reports, while deleting a user deletes them too.
- iSpring Learn bills only active users, and counts a user as active if they logged in at least once during a month.
- The Account Owner cannot be deactivated, and Department Administrators and custom roles can deactivate only users in the departments they manage.
- An administrator can reactivate an inactive account later, and the user's permissions come back with it.
deactivate_users asks for your OK by default. To run it weekly without you, switch confirmation off for that tool in your dashboard.
Sources: iSpring Help: How to Deactivate a User · iSpring Help: Deleting Users · iSpring Help: Importing Users from an Excel File · iSpring LMS pricing
Call deactivate_users from a script
curl -X POST https://cotlet.dev/api/v1/ispring/users/deactivate \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_ids":["u_92b7c1","u_92b7c2"]}' {
"deactivated": 2,
"scheduled_for": null,
"users": [
{
"user_id": "u_92b7c1",
"name": "Maria Silva",
"status": "inactive"
},
{
"user_id": "u_92b7c2",
"name": "Jake Ortiz",
"status": "inactive"
}
]
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is ispring_write → deactivate_users. Example data.
Schedule it in n8n, Make, Zapier or croniSpring Learn (iSpring LMS) tools this automation uses
| Tool | Parameters |
|---|---|
| list_users | query, department_id, group_id, status, limit, cursor |
| deactivate_users | user_ids, deactivate_on |
Frequently asked questions
Should my agent delete the accounts instead?
No. iSpring Learn deletes the statistics of a deleted user, so completed courses disappear from reports. Deactivation keeps them and also frees the seat.
Is it safe to connect iSpring Learn (iSpring LMS) to Cotlet?
Yes. You sign in to iSpring Learn (iSpring LMS) yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get iSpring Learn (iSpring LMS) 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 iSpring Learn (iSpring LMS).
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with iSpring Learn (iSpring LMS).