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

Rule 1. we have a business rule which disables a user account after updating a user. It then does some other actions. Rule 2. we have a business rule which performs ... 2 then triggered immediately and the flow of control handed back to rule 1 to continue?

asked Apr 3 by i*windows (280 points)
0 votes
1 answer

In our environment, we have many business rules with "Add to group". Now I have to delete the "Add to group xyz" in all business rules, as the group is now rule-based. Is there ... in Adaxes so that I don't have to search for and delete all "Add to group xyz"?

asked Mar 7 by DRiVSSi (300 points)
0 votes
1 answer

Hello, We have some Create Business Rules with ifs and other actions. Now these have to be controlled by a third person who has no rights to the console. How can I export the ... to a .txt file? The TXT must contain the condition and the actions. Thanks a lot

asked Aug 10, 2023 by DRiVSSi (300 points)
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)
3,526 questions
3,217 answers
8,197 comments
547,625 users