0 votes

Hi there.

We have a number of business rules that are triggered when a user account is updated. However, we would like the business rules to be processed in a specific order. In our specific case, we have a business rule that removes users from all groups and a few other business rules which evaluate conditions and then add users to specific groups. The rule that removes users from all groups is now running last of all which kind of defeats the object. Is it possible to set the order of business rules?

Alternatively what we are trying to achieve is the standardisation of group membership (up to 100 groups) based on AD fields every day. So, when someone moves from Marketing to Sales, the user is removed from all groups and placed back only into the groups they should be. (We used to use Imanami GroupID software for this purpose as its dynamic group feature provided a way to achieve it on a schedule)

Many thanks
-Nick

by (50 points)

1 Answer

0 votes
by (215k points)
selected by
Best answer

Update 2018

Starting with version 2018.1, you can control the order of business rules execution. For details, have a look at the following help article: https://www.adaxes.com/help/BusinessRuleExecutionOrder.

Original

Hello Nick,

No, there is no way to define a rigid order in which Business Rules are processed. The order will change every time you create, update Business Rules or reinstall / upgrade Adaxes. However, the order in which actions / conditions are processed within the same Business Rule is always observed. So, if you want to have a strict order of actions that you want to be triggered by this or that event, you need to keep everything within the same Business Rule.

If you have very complicated logic that you feel hard to keep everything within the same Business Rule, you can split all the logic into several Custom Commands, each command containing a more or less independ set of actions/conditions. Then, you can call the Custom Commands from your Business Rule using the Execute a Custom Command action.


For information on how to create Custom Commands, see the following tutorial: http://www.adaxes.com/tutorials_ActiveD ... ommand.htm.

As for your specific task of group membership management, have a look at the following tutorial that describes how to achieve what you want with the help of Adaxes: http://www.adaxes.com/tutorials_Automat ... rtment.htm. At the end of the tutorial, you'll find a section that describes how to easily apply the same group membership on a schedule, on user creation and modification.

Also, since you are having around 100 groups to manage, you may find difficult to do this with the help of Adaxes built-in actions. In this case, you can manage group membership using scripts. For more details, have a look at the following tutorial: http://www.adaxes.com/tutorials_Automat ... cripts.htm.

0

Thanks for the update. We will give this ago.

It would be nice if you could cascade, hierarchically, certain business rules though. If it is possible to feed this back into the development cycle? PowerShell/scripting experience is light here and people prefer the GUI which is quick and easy to build up rules.

Thanks again
-Nick

0

Hello Nick,

Currently, we are not planning anything like that, but thanks for the suggestion. We'll think on that.

Related questions

0 votes
1 answer

I'd like to be able to either send an email report or export a CSV of all of the business rules carried out when a user is disabled. This would be ... Management Activity section but this includes things that weren't part of the disable operation. Thanks

asked Feb 19, 2020 by bavery (250 points)
0 votes
1 answer

Hi, I have a business rule that triggers on creation of a user In its actions it: Moves the user to a specific OU Calls a powershell script to mailbox enable the ... action that would normally fire it was caused by another business rule? Thanks in advance Phil

asked Nov 5, 2014 by philt (20 points)
0 votes
1 answer

Is it possible to disable the logging of a specific Business Rule on the web interface? I see the option "Show Execution Log", which I've set to "Only if it contains errors or ... to see any of the logs of the Business Rules. Is it possible to turn if off?

asked Feb 13, 2014 by sdavidson (730 points)
0 votes
1 answer

Is there an order of precendence for Property Patterns? If I set a property pattern at a level lower than another property pattern is set what happens? Will one work and the other won't?

asked Aug 18, 2020 by ComputerHabit (790 points)
0 votes
1 answer

We'll be updating over 14K accounts with data (adding data to a virtual attribute) using a scheduled task but I don't want the updates to trigger Business Rules and flood the Adaxes log with entries. Is there an easy way to prevent this?

asked Apr 12 by sandramnc (820 points)
2,779 questions
2,512 answers
6,574 comments
26,511 users