MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgByteReader* MgSite::EnumerateUsers ( CREFSTRING  group)

Gets a list of users.

Remarks:
If a group is specified, this returns a list of the users in that group. If a group is not specified, it returns a list of all users.
.NET Syntax
MgByteReader EnumerateUsers(string group);
Java Syntax
MgByteReader EnumerateUsers(String group);
PHP Syntax
MgByteReader EnumerateUsers(string group);
Parameters:
group(String/string) The name of a group, for example "Engineering". Or, an empty string to return a list of all users.
Returns:
Returns an MgByteReader object listing the users in XML format using the MgUserList schema.
Examples (PHP)
This returns a list of all users in the group "Engineering":

 $byteReader = $site->EnumerateUsers("Engineering");

This returns a list of all users:

 $byteReader = $site->EnumerateUsers("");
Exceptions:
MgConnectionNotOpenException
MgGroupNotFoundException