Community discussions

MikroTik App
 
mt111
just joined
Topic Author
Posts: 5
Joined: Mon Sep 07, 2015 9:53 pm

User manager v7 delete expired users

Fri Jul 07, 2023 12:44 am

Hi
I have Hotspot:

So, the problem is that, old users pile up. In the real client setup, I have 100's of users, I would like to delete these users everyday, by use of a script.

Please help, it is quite a mission to delete the users manualy
In old usermanager it's working but in this new one i didn't find any way to fix this problem.

Thanks for the help.
 
imirsay
just joined
Posts: 22
Joined: Fri Jul 28, 2023 12:47 pm

Re: User manager v7 delete expired users

Tue Jul 02, 2024 7:43 am

please help
 
User avatar
abbio90
Member
Member
Posts: 447
Joined: Fri Aug 27, 2021 9:16 pm
Location: Oristano
Contact:

Re: User manager v7 delete expired users

Sat Jul 20, 2024 4:01 pm

I created an ad hoc script that deletes older users. In my case I created a self-registration with email and password. When the user is created, the expiration date YYYY/MM/DD is indicated in the comment so that it is easier to remove them with scripts. the script examines expired users every day at midnight and deletes them. I also thought about eliminating users older than the expiration date. assuming that for some reason, the router was turned off on the expiration date. If you haven't solved it and need help, hit me up