getPrimaryGroupOSID()

The method returns the OS ID of the primary user group. In the AD, the user must belong to a primary user group.

Synopsis

public string getPrimaryGroupOSID();

Return Value

The OS ID of the primary user group.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  shared_ptr<UserManagementUser> usr1 = new UserManagementUser("para");
  string usr;
  DebugN(usr = usr1.getPrimaryGroupOSID());
  /* Returns the OS-ID of the primary group */
  DebugN("The OS-ID of the primary group para is:", usr);
}

Assignment

User administration

See also

setPermissionDescription()