User Manager/User prefix

From MikroTik Wiki
Jump to: navigation, search

Applies to RouterOS: v3.x


Note: In version 4, each user belongs to a particular customer, there is no need to use prefixes anymore

Every user belongs to specific subscriber. To separate users among customers of the same subscriber, a specific customer property called user prefix is used. (See the meaning of word prefix in Wikipedia).

It is a customer's string field which specifies initial part of user login (username). Only users with such initial part of username will be accessible to this customer.

Example (insignificant parts skipped):

[admin@USERMAN] tool user-manager customer> print
0   subscriber=owner login="owner" password="" permissions=owner parent=owner
1   subscriber=owner login="manager" password="" user-prefix="p" permissions=read-write parent=owner
2   subscriber=owner login="reader" password="" user-prefix="public" permissions=read-only parent=owner

[admin@USERMAN] tool user-manager user> print
0    subscriber=owner username="differentUser"
1    subscriber=owner username="publicUser1"
2    subscriber=owner username="publicUser2"
3    subscriber=owner username="privateUser1"
4    subscriber=owner username="privateUser2"
5    subscriber=owner username="pztuxy"
6    subscriber=owner username="klztt8xs"

According to the situation described above, customer owner is subscriber with two sub-customers: manager and reader. User accessibility can be shown in following table:

owner manager reader
differentUser +
publicUser1 + + +
publicUser2 + + +
privateUser1 + +
privateUser2 + +
pztuxy + +
klztt8xs +