getAllGroups()

The method returns all groups.

Synopsis

public dyn_anytype getAllGroups()

Return Value

All groups

Errors

Errors are shown in the log viewer.

The method returns the groups from the data point and not from the cache!

EXAMPLE

#uses "classes/userManagement/UserManagement"
main(mapping event)
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  DebugN(userMgm.getAllGroups()); /* returns all user groups */
}

Assignment

User administration

See also

getAllAreas(), getAllSavedUsers()