0 votes

Hello,

I have a lot of rule-based groups which are updated every day at 5 a.m.

  1. but now I would like to change the synchronization time for all groups, for example to update every evening at 6 o'clock, or every 12 hours. How can I change this for all groups so that I don't have to edit all groups individually?
  2. and is it possible that the groups are updated as soon as a new user is created? so that I don't have to wait until 6 o'clock every evening for the groups to be added to the new user? Or can a custom command be created which updates all groups when executed?

Many thanks for your help! D.

by (280 points)

1 Answer

0 votes
by (272k points)

Hello,

How can I change this for all groups so that I don't have to edit all groups individually?

Do we understand correctly that you want to update all the existing rule-based groups schedule with the same time? If that is correct, it can be done using a custom command and a script. The script will search for rule-based groups and update them altogether. The following article will be helpful: https://www.adaxes.com/sdk/IAdmGroup2.

and is it possible that the groups are updated as soon as a new user is created?

It can only be done using a script. You can execute it in a business rule triggering After creating a user. The script will bind to the corresponding groups and execute method UpdateMembershipNow as described in the article we referenced above.

0

that's great, thank you very much. What if I need to add another query? Say $groupDNs remains as it is, but I only want all English-speaking members, i.e. preferred language is EN. so that would be the rules: image.png

And how can I set the "look in (OU)" of the query?

thx a lot

0

Hello,

You will need to create a membership rule of the Query results type (i.e. ADMBUSINESSUNITMEMBERSHIPTYPEQUERY) and fill it with the required criteria. The following article will be helpful: https://www.adaxes.com/sdk/IAdmBusinessUnitQueryRule.

0

like this?

    # Include users by Query Rule
    $rule = $rules.Create("ADM_BUSINESSUNITMEMBERSHIPTYPE_QUERY")
    $rule.BaseObjectDnTemplate = "%adm-ParentDN%"
    $rule.Exclude = $false
    $rule.Scope = "ADS_SCOPE_SUBTREE"
    $criteria = New-AdmCriteria "user" {directMemberOf -eq $groupDN -and preferredLanguage -eq "EN"}
    $rule.SetCriteria($criteria)
    $rules.Add($rule)

how can I set the OU where the query should search the groups and members?

0

Hello,

You can use the BaseObjectPath or BaseObjectDnTemplate property.

0

top thx

Related questions

0 votes
1 answer

I am trying to create a business rule to send an email to the manager of the group when a member is added or removed from a rule-based group. I have created the business rule and it works for other groups but not for a rule-based group. Can this be done?

asked Jul 19, 2021 by mark.it.admin (2.3k points)
0 votes
1 answer

Hi, would it be possible to achieve the following idea: Creating and updating rule based groups, based on user attributes like company? For each company value in AD, ... get all unique company values, then create a group with this company value as filter.

asked Mar 7 by wintec01 (1.1k points)
0 votes
1 answer

We would like to use the "Rule Based Groups" functionality that Adaxes has to create distribution groups where we have one group per manager and the members are the user ... so that the link doesn't break when changes happend to the managers AD object?

asked Oct 27, 2021 by odsven (1.8k points)
0 votes
1 answer

I followed these instructions but still don't see the edit button unless I log in with my full adaxes administrator account. https://www.adaxes.com/ ... Membership" to the Group Manager built in security role. What am I missing?

asked Mar 4, 2021 by mark.it.admin (2.3k points)
0 votes
1 answer

Hi, I would like to exclude users from a rule-based group where distinguishedName contains "Special". Any possibility to achive this?

asked Jul 4, 2023 by wintec01 (1.1k points)
3,351 questions
3,052 answers
7,791 comments
545,102 users