Auto disconnect old connection when new connection exceeds "shared-users"?

OBJECTIVE : Need to auto-disconnect the oldest connection of a user with multiple shared-users, in order to allow new connections for this user without prompting “simultaneous session limit reached for user…”

Any ideas?

My idea is to write a login script and put it into the hotspot user-profile (On login).
My problem is that I don’t know how to retrieve info(variables like shared-users) from User Manager,
because it is located on another unit, different from the one that the Hotspot runs.
Any ideas how to retrieve remote info?

TIA
Andreas K.

My idea is set shared-users = n+1 then write script kick the oldest user when number clients reach n+1