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

Hi , i have move action I want ADAXES to Remove user from group named like this ADG1 and add user to ADG2 if user moved from OU ADG1 to ADG2 , ... member of group named like this shift_check_in_1 i want to remove and add anohter group named shift_check_in_2

asked 3 days ago by vagifazari (450 points)
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 (290 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)
3,569 questions
3,259 answers
8,275 comments
547,962 users