getAllSavedUsers()

The method returns all saved WinCC OA users.

Synopsis

public dyn_anytype getAllSavedUsers();

Return Value

All saved users.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main(mapping event)
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  shared_ptr<UserManagementUser> usr = new UserManagementUser("JohnDoe","");
  DebugN("Added user:", userMgm.addUser(usr)); /* Adds the user JohnDoe to the user management */
  DebugN("Save changes:",userMgm.saveChanges());
  DebugN("Users:",userMgm.getAllSavedUsers()); /* Returns all saved users */
}

Assignment

User administration

See also

getAllAreas(), getAllGroups()