Previous Topic: removeSubgroups—Remove SubgroupsNext Topic: configure—Generate a Configure Job in a Job Container


Example

Suppose that the groups named "LA admin," "LA sales," and "LA rd," should be removed from the group "LA District" again. The following command will remove these groups as subgroups from the supergroup "LA District":

cadsmcmd compGroup action=removeSubgroups name="LA District" compgrp="LA admin" compgrp="LA sales" compgrp="LA rd" 

The groups "LA admin," "LA sales," and "LA rd," are not deleted from the database by the command; they are only removed from the group "LA District". Any other containment relations beside the ones previously shown are still present.

The command will report an error if the containment relation to be broken is the only one for one of the subgroups to be removed. For example, "LA admin" is only mentioned as a subgroup of "LA District" while the other subgroups are also mentioned in the folder "Computer and User Groups" or in other groups. Then "LA admin" is not removed, but the others are. The message "A001513 – Illegal Computer Group operation. Group must have at least one super group". is launched. The only way to remove "LA admin" is to delete it (cadsmcmd compGroup action=delete name="LA admin" ) or assign it as a subgroup to another group and then remove it from "LA District".