0 votes

Is there way to trigger a rule-based group to run a membership update after a successful user create operation in addition scheduled interval.

by (320 points)

1 Answer

0 votes
by (289k points)

Hello,

Yes, you can use the below script in a business rule triggering After creating a user. In the script, the $groupDN variable specifies the distinguished name (DN) of the group. For information on how to get an object DN, see https://www.adaxes.com/sdk/HowDoI.GetDnOfObject.

# Bind to the group
$groupDN = "CN=My Group,OU=Groups,DC=company,DC=com"
$group = $Context.BindToObjectByDN($groupDN)

# Initiate group membership update
$group.UpdateMembershipNow()

Related questions

0 votes
1 answer

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 ... set to trigger "After adding a member to a group". Thank you for your support!

asked Mar 29, 2023 by mark.it.admin (2.3k points)
0 votes
1 answer

Hi, is it possible to manage rule based groups with Powershell and change criterias? Basically we would like to generate one "dynamic" group for every manager with all their direct and indirect reports

asked May 31, 2023 by wintec01 (1.5k points)
0 votes
1 answer

We currently have a form for HR to deal with ex-employees that are hired once more, but it's not much more than automatic emails sent to IT. If I add some actions ... this trigger the business rule we have that targets "After updating a user" ? Thanks, Louis

asked Oct 18, 2022 by lw.fa (130 points)
0 votes
1 answer

My scheduled task currently: Checks for staff in a particular OU that do not have an O365 license Adds a license Resets their AD Password Moves them to an OU based off ... scheduled task moves them out of the OU that the business rule is looking at. Thanks

asked Apr 15, 2020 by russmerriman (40 points)
0 votes
1 answer

Hi Forum, I have another quick question. There's a Business Rule with an Approval on Adding Users to certain Groups. Is it possible to trigger this Business Rule when ... scope from a Powershell script (add-admgroupmember ...)? Thanks for your Help Cheers

asked Oct 26, 2015 by esoAdxAdmin (650 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users