I need to create a lot of groups that have similar dynamic membership rules.

e.g.

  • Marketing group that adds users if they are enabled and if customAttribute10 is "14"
  • Sales group that adds users if they are enabled and if customAttribute10 is "18"
  • Admin group that adds users if they are enabled and if customAttribute10 is "42"

but I need to do this for about 100 groups, and I'd like to copy all the other settings and attributes between them.

So is there a way to do this in bulk?

by (120 points)

1 Answer

by (309k points)
0 votes

Hello,

It is only possible to create rule-based groups in bulk via a script. The following SDK articles should be helpful:

https://adaxes.com/sdk/SampleScripts.CreatingGroups

https://adaxes.com/sdk/IAdmGroup2

For your information, Adaxes custom attributes (e.g. CustomAttributeText1) cannot be used in membership criteria for rule based groups. This behavior is by design and cannot be changed. As such, if customAttribute10 is an Adaxes custom attribute, the only approach you can use is via business rules or scheduled tasks. For details, have a look at section Centralized automation of the following tutorial: https://www.adaxes.com/help/AddUsersToGroupsByDepartment/#centralized.

Related questions

Would it be best to use the standard Powershell to pull the user's group membership and can that be embedded in a notification email after a user is created? Or is there a variable that will do this that I seem to be missing.

asked 2 days ago by noahphex (40 points)
0 votes
1 answer

I find it's a good idea to have backups of a user's group membership when they depart so I'd like to be able to do this.

asked 5 days ago by noahphex (40 points)
0 votes
1 answer

https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm I found this script but it only removes 365 groups, security groups, and ... user from all shared mailboxes they are a member of when disabling a user. Thanks!

asked Sep 8, 2023 by silicondt (60 points)
0 votes
1 answer

I need to send an e-mail to the owner ("managed by") for each group. The e-mail should contain a list of group members. What is the best way to do that?

asked May 9, 2024 by akindy (40 points)
0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16, 2024 by dominik.stawny (280 points)
0 votes
1 answer