The following steps can be taken to create a workflow to restrict adding a group to specific groups:
- Create a new Change Workflow
- Expand the Workflow options and start conditions and click Configure
- Click Select operation...
- Change the Target object type to Group
- Select Change membership from the list and check off Add member to group
- Click Finish
- Click OK
- Drag over an If-Else activity and place it ABOVE the operation in the workflow
- Drag over a Stop/Break activity and place it INSIDE the LEFT If-Else Branch
- Right-click the LEFT branch labeled If-Else Branch and select Properties
- Click the green circle with the white + (plus symbol) on it to add a new condition
- Click Configure condition to evaluate... and select property of added group member...
- Next to Target property, click Click to choose and select More choices...
- Find Distinguished Name in the list and select it then click OK
- Click OK
- Click Define value to compare to... and select Fixed object in directory
- Browse for the group to restrict being added to other groups and add it, then click OK
- Click the green circle with the white + (plus symbol) on it to add a new condition.
- Click Configure condition to evaluate... and select property of workflow target object...
- Next to Target property, click Click to choose and select More choices...
- Find CN in the list and select it then click OK
- Change the conditional equals to contains
- Click Define value to compare to... and select Text string...
- Type the text that shows up in the group names that you want to disallow; ex. SCCM
- Click OK
- The most important step is click the Save Changes button to commit the above changes or the workflow settings will be lost
The last conditions could also be 'equals' and set to a specific target group. This can also be repeated to add additional groups to restrict being added to.
At this point, the workflow is complete. You have the option to customize the error message by double-clicking the 'Stop/Break' activity but this is not necessary.