GetUsers

Purpose

Returns a list of web users and their access rights (but not passwords) from the system.  The list returned is in the form: username|rights,username2|rights2, etc.

User rights are values that are sometimes OR'd together and are as follows:

USER_GUEST = 1
USER_ADMIN = 2
USER_LOCAL = 4
USER_NORMAL = 8

A user is either GUEST, NORMAL, or ADMIN, but any of the user IDs with that access level can also be the LOCAL user, which is the username used when the system is accessed via the local network.  For example, a user with rights that are equal to 10 (decimal) is the local user, and that user has admin rights.

Parameters

None.

Returns

Return value: user list
Type: string

Example

This script will produce a list of the users and their rights to the system log.

GetUsers Script Example

Example output from this script:

4/1/2004 12:00:00 AM~!~Event Trigger~!~Trigger from menu (GetUsers Test)
4/1/2004 12:00:00 AM~!~User Info~!~Name is: guest and has no user rights.
4/1/2004 12:00:00 AM~!~User Info~!~Name is: Mary and has no user rights. Local Login ID
4/1/2004 12:00:00 AM~!~User Info~!~Name is: Charlie and the rights are: Admin