addGroup()

The method adds a user group to the user administration.

Synopsis

public int addGroup(anytype group);

Parameter Description
group The group that is added to the WinCC OA user administration.

Return Value

The function returns TRUE when a user group could be added to the user administration.

Errors

Errors are shown in the log viewer.

EXAMPLE

main()
{
  shared_ptr<UserManagement> m_um = UserManagement::getInstance();
  anytype group = new UserManagementGroup("getAllGroupsPVSS_010_group1");
  anytype group2 = new UserManagementGroup("getAllGroupsPVSS_010_group2");
  m_um.addGroup(group);
  m_um.addGroup(group2);
  m_um.saveChanges();
}

Assignment

User administration