getOSID()

The method returns the OSID of a group.

Synopsis

public string getOSID();

Return Value

The OSID of a group.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main(mapping event)
{
  shared_ptr<UserManagement> userMgm  = UserManagement::getInstance();
  shared_ptr<UserManagementGroup> GroupData;
  dyn_anytype allGroups = userMgm.getAllGroups();
  /*Returns all groups and then returns the groups by name. The group names and IDs are output */
  for (int i =1; i<=dynlen(allGroups); i++)
  {
    GroupData = userMgm.getGroupByName(allGroups[i].getName());
    DebugN("Get group:", GroupData.getName(),GroupData.getId(),GroupData.getOSID()  );
  }
}

Assignment

User administration

See also

setPermissionDescription()