0 votes

Using the web page I am trying to update a user and then using a business rule cause some properties to be change and then move them to a new ou.

I am getting errors while doing this.

See attached Word doc

by (280 points)
0

Think I figured it out. I had created a Rule loop. I set actions to asynchronous and it worked.

0

Ok another question.

Will a scheduled task that updates a user trigger a business rule set to execute "after updating a User"?

1 Answer

0 votes
by (216k points)

Hello,

Yes, Business Rules are triggered every time an operation is performed via Adaxes service, no matter whether the operation is performed by an AD user or a Scheduled Task.

Also, returning to the loop issue, setting the action to execute asynchronously you just go rid of the warning message, but not of the reason that created the loop. To avoid creating loops, use conditions. For example, if a Business Rule is triggered after updating a user and updates the Department property, to avoid a loop, you can set a condition in front of the action to execute it only when Department is not modified.

By the way, didn't see the attached Word file. Can you post screenshots of your Rule here?

0

Here is my rule in attachment

Tell me something - I understand now that if I update a user or a scheduled task updates a user this may trigger a rule. But what about the property pattern? If a rule fires does the default property pattern for password cause the existing password value to be overwritten?

0

As to your Business Rule, it is quite clear why it creates a loop. In your Business Rule, you update the user's properties: you create a home directory for the user and map it to a drive, which involves setting the Home Directory and Home Directory Drive properties of the user account, then you modify the Notes, etc. Each such action involves updating the user's account. And since you Business Rule is set to be triggered after updating a user account, the Rule would keep triggering itself all the time if not for the built-in loop prevention in Adaxes Business Rules.

So, to prevent the Business Rule from being triggered by itself, you can, for example, check if one of the properties set by the Business Rule is empty. For instance, the Business Rule creates a home folder for the user, which probably means that the user does not have a home folder before the Rule is triggered. So, you can add a condition to check whether the Home Directory property is empty. To do this:

  1. Launch Adaxes Administration Console.
  2. Locate the Business Rule you need.
  3. Select the set of actions and conditions of the Business Rule.
  4. Press the Add Condition button.
  5. Select the If <property> <relation> <value> condition.
  6. Select If Home Directory is empty.
  7. Click OK and save the Business Rule.

As to your question about Property Patterns, no, a Property Pattern will not cause overwriting any values. A Property Pattern can only contain some value generation templates and constraints that apply to a property. If a certain property has a default value, this is just a value that will be pre-generated on object creation to facilitate and speed up creation of an AD object and saving the necessity to fill in each field.

Related questions

0 votes
1 answer

Any advice would be greatly appreciated.

asked Feb 9, 2023 by Homelander90 (350 points)
0 votes
1 answer

Hello, I have a Business rule that does the following : If 'extentionAttribut9' property has changed AND the 'adm-CustomAttributeTextMultieValue1' property equals 'Add Groups' then Execute ... I will comes into a loop. How can I prevent it? Thanks in advance.

asked Jun 6, 2017 by tentaal (1.1k points)
0 votes
1 answer

AD is our identity source for Okta. When a user's AD account locks, the corresponding Okta account locks too. When the user self-unlocks the AD account via Adaxes, the ... there a way where Adaxes can also unlock the Okta account by leveraging Okta's API?

asked May 14, 2024 by ma4997 (20 points)
0 votes
1 answer

Dear colleagues, can you please advise if it is possible to create (and update reqularly) business unit of computer objects based on a query to external SQL DB (hostnames stored in SQL)? Thanks!

asked Dec 14, 2022 by Dmytro.Rudyi (920 points)
0 votes
1 answer

Our SQL DBAs are working to move most/all our SQL connections to SSL. They have asked if Adaxes can support this.

asked Feb 22, 2021 by ggallaway (300 points)
3,677 questions
3,361 answers
8,494 comments
549,333 users