We use cookies to improve your experience.
By your continued use of this site you accept such use.
For more details please see our privacy policy and cookies policy.

Script Repository

Disallow adding groups to other groups

February 18, 2021 Views: 2131

The script can be used to disallow adding groups to other groups. When executed in a business rule triggered Before adding a member to a group, it will cancel the operation if the new member is a group.

Edit Remove
$member = $Context.BindToObjectByDN("%member%")

if ($member.Class -ieq "group")
    $Context.Cancel("You cannot add groups to other groups!") # TODO: modify me
Comments 0
Leave a comment

Got questions?

Support Questions & Answers