We have a business rule that will update an AD attribute when a new member is added to a group. This business rule works when we use powershell commands or the admin console but it seems to not be triggering for an ADSI script.
$groupDN = (Get-AdmGroup -Identity $Name).DistinguishedName
$group = $Context.BindToObjectByDN($groupDN)
$group.Add("Adaxes://$user")
That is the code that we are using to add the member to the group which is not triggering the business rule. It is adding the member to the group though. The business rule is set to trigger "After adding a member to a group".
Thank you for your support!