Hi everyone, in this post I want to show you how to set up MikroTik User Manager v7. User Manager is the RADIUS server built into MikroTik. With User Manager, hotspot or PPPoE user accounts are no longer stored in each service separately. Instead, they live in one central database together with plans, validity periods, speed limits, and session history.
User Manager in RouterOS 7 is completely different from version 6. The menu has moved to /user-manager, the old web interface is gone, and plans are now configured with profiles and limitations. I tested everything on a MikroTik CHR running RouterOS 7.25.2, using the hotspot from the how to set up a MikroTik hotspot in Winbox article, until a guest could log in through User Manager with the speed limited by a plan.
Installing the User Manager Package
User Manager is an extra package, so it does not appear in the menu until you install it.
Enable the user-manager package

Click System, then Packages. A package with the XA flag is available but not installed yet. Select user-manager, click Enable, then click Apply Changes. The router downloads the package with the same version as RouterOS, so the router must be connected to the internet.
Confirm the reboot

A prompt appears asking Apply scheduled changes and reboot device. Click OK and wait for the router to come back up. For a router without internet access, download the extra packages file for your version and architecture from the MikroTik website, upload the user-manager file to Files, then reboot.
The User Manager menu appears

After the reboot, the User Manager menu appears below WiFi and the log records installed user-manager-7.25.2. Note that the menu positions in WinBox shift because of the new menu.
Connecting the Hotspot to User Manager
Enable User Manager and RADIUS

/user-manager set enabled=yes
/user-manager router add name=router-lab address=127.0.0.1 shared-secret=radius-secret
/radius add service=hotspot address=127.0.0.1 secret=radius-secret
/ip hotspot profile set hsprof1 use-radius=yes radius-interim-update=1mBecause User Manager runs on the same router, its RADIUS address is 127.0.0.1. The router entry in User Manager is the list of devices allowed to send requests to User Manager, while /radius is the setting on the hotspot side that tells it to send requests to User Manager. The shared secret on both sides must match exactly. The commands above use radius-secret as an example, so replace it with a long random string. In this lab I deliberately ran the same commands without shared-secret and secret, and RouterOS still accepted them, but do not do that on a real router. For PPPoE, add ppp to the RADIUS service and run /ppp aaa set use-radius=yes.
Check the router in User Manager

Click User Manager, then the Routers tab. Router-lab is listed with the address 127.0.0.1. The Access Requests column goes up every time there is a login request, and Access Failures shows how many logins were rejected.
Creating a User and Testing the Login
Log in with a User Manager user

/user-manager user add name=tamu-um password=guest-password group=defaultThe command above is the form for a real user. For testing, I created the user tamu-um without the password parameter. This user is not in the hotspot user list, it only exists in User Manager. On the hotspot login page, enter tamu-um, click Connect, and the login succeeds.
Make sure the login goes through RADIUS

/system logging add topics=radius,debug
/ip hotspot active print detail
/log print where topics~"radius" and message~"Access"The tamu-um session has the R flag, which means it was authenticated by RADIUS. The log shows the router sending an Access-Request to 127.0.0.1:1812 and then receiving an Access-Accept. This proves the login was handled by User Manager, not by a local hotspot user.
My experience: I was not sure at first that a user without a password would be accepted, because several forum reports say an empty password is rejected when logging in by MAC address. It turns out that for a regular login through the hotspot page with the http-chap method on RouterOS 7.25.2, a user without a password is accepted with Access-Accept. Even so, in real use every user should still have a password.
Speed Plans and Validity Periods
Create a limitation and a profile

/user-manager set use-profiles=yes
/user-manager limitation add name=lim-384k rate-limit-rx=128k rate-limit-tx=384k
/user-manager profile add name=paket-harian name-for-users="Paket Harian" validity=1d starts-when=first-auth
/user-manager profile-limitation add profile=paket-harian limitation=lim-384k
/user-manager user-profile add user=tamu-um profile=paket-harian
/user-manager user-profile printHere is how it fits together. A limitation holds restrictions such as speed, data quota, or time. A profile is the plan you sell, here with a validity of 1 day that starts counting at the first login. Profile-limitation links the two, and user-profile assigns the plan to a user. The status is still waiting because tamu-um has not logged in again. Use-profiles must be set to yes, otherwise the limitation will not be applied.
The plan becomes active after login

/user-manager user-profile print
/queue simple print stats where dynamicAfter tamu-um logs in again, the plan status changes to running-active with an end-time exactly 1 day after the login. The router also creates the dynamic queue hotspot-tamu-um, and when the guest downloads a file, the download rate holds at 385.0kbps, matching the 384k limitation.
View the session history

The Sessions tab keeps a history of every session, including the IP address, MAC address, start time, end time, and data usage. The router sends this data through RADIUS accounting every 1 minute, as set by radius-interim-update.
Migrating from RouterOS 6 User Manager
A version 6 User Manager database can be migrated after the router is upgraded to version 7.
/user-manager database migrate-legacy-db database-path=user-managerThe old database folder must be present in Files. Make a backup before running it, as shown in the MikroTik backup and restore article.
Common Problems and How to Fix Them
The User Manager menu is missing
The package is not installed or its version does not match RouterOS. Check System Packages. The package must show as installed with the same version.
RADIUS server is not responding
The shared secret in /radius and in the User Manager router entry is different, or the router entry address does not match the address used by the hotspot. Also check that the firewall input chain is not blocking ports 1812 and 1813.
Guests can log in but do not appear in Sessions
The hotspot is not set to use-radius=yes, or radius-accounting is turned off.
The speed limit or validity period does not work
Make sure use-profiles=yes, the profile is linked to a limitation, and the user has a user-profile. Set the router clock with the NTP client, because validity periods and time limits depend on the router clock.
At this point User Manager v7 is handling hotspot logins, complete with speed plans and validity periods. Once the customer services are ready, do not forget to secure the router itself with a basic MikroTik firewall. If you use User Manager for PPPoE customers, share your experience in the comments.












