0 votes

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 their office location

I also have a business rule that triggers on the reset of a user password and send the user a Welcome email with the password but it only triggers for users in the OU that the scheduled task looks at... I just want to know if the Business Rule will trigger before the scheduled task moves them out of the OU that the business rule is looking at.

Thanks

by (40 points)

1 Answer

0 votes
by (216k points)

Hello,

By default, actions in Business Rules, Scheduled Tasks, and Custom Commands are executed sequentially. An action will not be executed until all the operations related to execution of the previous one (e.g. the triggered Business Rules) are finished. So, if the Reset user password action is specified before the Move the user action in your Scheduled Task, the move operation will be performed only after all the Business Rules triggered by the password reset are executed. But, if the Execute asynchronously checkbox is selected in properties of an action, the main operation (e.g. Scheduled Task run) will not wait until the action is executed. image.png

Related questions

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

Is it possible to disable then re-enable a Business Rule from a Scheduled Task? For example, when the Scheduled tasks starts, it disables a Business Rule, runs the Task(s), then re-enables the Business Rule when done.

asked May 11, 2016 by Kikaida (1.1k points)
0 votes
1 answer

My scheduled task works like this (these are my action sets) Condition(s): Account is expired and home drive exists Action The user's home directory gets archived Condition(s): ... set? I do not want to split the scheduled task into two! Thanks in avance!

asked Apr 7, 2022 by lehnen (20 points)
0 votes
1 answer

I am trying to trigger processing outside of Active Directory when an account is created based on the source user account that was used. Does Adaxes store the source account anywhere?

asked Oct 9, 2023 by jnordell (20 points)
0 votes
1 answer

I need a way of triggering a business rule based on the user (and not the group) being added or removed from a group. The reason I would like this triggered on the user is so ... prefer not to do that. I am checking to see if there is another way to do this.

asked May 16, 2023 by mark.it.admin (2.3k points)
3,326 questions
3,026 answers
7,727 comments
544,678 users