# List of Active Users

**URL:** <https://forum.servoy.com/t/list-of-active-users/15400>\
**Category:** Classic Servoy\
**Created:** [January 23, 2012, 11:31pm UTC](https://forum.servoy.com/t/list-of-active-users/15400 "2012-01-23T23:31:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [January 23, 2012, 11:31pm UTC](https://forum.servoy.com/t/list-of-active-users/15400/1 "2012-01-23T23:31:05Z")

</div>

Version: 6.0.4 - build 1227

How do you get a list of active users (i.e. users logged into a solution on Servoy)?

We tried using the Maintenance plugin as follows:

```auto
var aClients = plugins.maintenance.getConnectedClients()

var fvCLIENTS_number_connected = aClients.length

        for ( var i = 0; i < fvCLIENTS_number_connected; i++ )
        {
            var oClient = aClients[i]
            
            ds.addRow( [ 
                            oClient.getUserName(),
                            oClient.getApplicationType(),
                            oClient.getClientID(),
                            oClient.getHostAddress(),
                            oClient.getHostIdentifier(),
                            oClient.getHostName(),
                            oClient.getIdleTime(),
                            oClient.getLoginTime(),
                            oClient.getUserUID()
                       ] )
            
        }

```

but the ‘.length’ property throws an error. We reported this as a bug to Servoy, and they responded as follows:

> Resolution: Won’t Fix
> 
> The typeError you get for length property is due to the usage of the length property related to the maintenance plugin (you use that when you get the connectedClients array). As the sample code says, the maintenace plugin is meant to run during solution import, using before or after import hook (so not from Smart/Web client). Therefore, we strongly recommend not to use the maintence plugin in such smart/web client scenarios.

Our customers are asking for this feature (it has been a feature in our Visual FoxPro version of the product for 25+ years). We do not want to give them access to the Sevoy HTML Admin pages as they are not technically saavy.

Thanks!

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [January 24, 2012, 8:50am UTC](https://forum.servoy.com/t/list-of-active-users/15400/2 "2012-01-24T08:50:25Z")

</div>

Have a look at the Usermanager plugin from Patrick Ruhsert.

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [January 24, 2012, 9:25am UTC](https://forum.servoy.com/t/list-of-active-users/15400/3 "2012-01-24T09:25:27Z")

</div>

Scott Butler recently added his Robot plugin on ServoyForge as well.  
Didn’t look into it yet, but is seems to be doing kind of the same.

> **[Overview - Robot Plugin - ServoyForge](https://www.servoyforge.net/projects/robot)**
>
> Redmine

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [January 25, 2012, 9:50pm UTC](https://forum.servoy.com/t/list-of-active-users/15400/4 "2012-01-25T21:50:07Z")

</div>

Thanks, Nicola and Marc. I am looking into both suggestions.
