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 (301k 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

I am trying to build a custom command to add a specific user to a rule based group in adaxes and I am curious if it is something we can use the API to complete?

asked Mar 7 by Brian (40 points)
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.8k points)
0 votes
1 answer

We have AD groups that manage what VLAN a user's system is associated with based on the user's department. I have custom command to change the PC group membership if the ... business rule. (I cannot select the command) is there a way to work around this?

asked Feb 27 by stevehalvorson (130 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 (150 points)
3,678 questions
3,361 answers
8,499 comments
549,338 users