0 votes

Is it possible to trigger an action 'after removing a member from a group' unless that member is a member of another group?

For example I have two security groups: 'DS Senders' and 'DS Viewers'.

I want to run a powershell script when an indirect member get's removed from 'DS Senders' but not if they are a member of 'DS Viewers', and vice versa.

by (250 points)
0

Hello,

when an indirect member get's removed from 'DS Senders'

What exactly do you mean by indirect member? Is it a member of a group nested in the DS Senders one?

and vice versa

What exactly do you mean? Could you, please, describe entire the desired workflow in all the possible details with live examples?

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Hello, I want to include in a sent email notification after removing a member from a group the active directory user property "company" and "co" of a user. How can I achieve this? I can not select a property %adm-membercompany% nor %adm-memberco"

asked Jun 7 by fabian.p (380 points)
0 votes
1 answer

Hello I am trying to set up a script to copy the 'Members Of' from specific accounts to a new user account after creating the user. Something very similar to this: https:/ ... to the ever changing nature of the business. Is someone able to help me with this?

asked May 28, 2020 by adantona (40 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, A year ago, in a previous ticket, I inquired about the possibility of mandating that Adaxes users enter a ticket number before adding a member to a ... automatic business rules that facilitate the addition/removal of members from groups. Regards, Fabian

asked Jul 16 by fabian.p (380 points)
0 votes
1 answer

We have several contractors that come and go, it would be helpful to have a custom command that will copy only the member of groups from one user to another. We have done this previously with ... ; write-warning "I'm sorry, Jay. I'm afraid I can't do that." }

asked Jan 9, 2017 by willy-wally (3.2k points)
3,542 questions
3,232 answers
8,226 comments
547,806 users