0 votes

HI Support,

I'm looking for a business Rule that remove a user from a couple of groups after the User is added to a group.

ie
1. The User MaxMi is added to the Group “MyGroup1”
2. After adding MaxMi to the Group MyGroup he will be removed from the Groups “MyGroup2” and “FirstGroup”

I created a businessrule which is triggered after adding a User to the Group with the Name “MyGroup”. Now I’m not able to create a powershell scripts for removing the added user from the other Groups.

Thx,

by (700 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

In Business Rules triggered after adding or removing a member from a group, you can use the %member% value reference that returns the Distinguished Name (DN) of the member that was added or removed. For an example on how to use it, see the following article in our Script Repository: http://www.adaxes.com/script-repository ... p-s280.htm.

Related questions

0 votes
1 answer

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
0 votes
1 answer

Hello, I am attempting to configure a business rule that adjusts an adaxes custom property of a user, upon that user being added/removed from a group. I cannot seem to ... (like username, office, description, email, etc.) but not so much on custom attributes.

asked Jul 14, 2023 by NKB#2772 (70 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (220 points)
0 votes
1 answer

Hello! how do i manage do get adaxes to remove all groups from the user after one month? We have a Business Rule where you can add an end of Date when the Account ... value field the powershell script works but not with the +1 Month. Thanks for your help!

asked Jun 14, 2023 by eww ag (140 points)
0 votes
1 answer

Hi team, I need to update users extensionAttribute6 after adding or removing them from a specific group. This is my setup: Group is updated based on rule set within Adaxes ... would like to update users after they were added or removed from this group. Thanks!

asked Sep 25, 2023 by wintec01 (1.1k points)
3,346 questions
3,047 answers
7,782 comments
544,990 users