The suggested does not address my question! Please have a human read my questions and offer a better suggestion.

My project is "Group Refresh" How do I remove all members in a group and run a scheduled task that adds members to the empty group?

I tried Rule based but no option. I want to run a remove membrs before running scheduled task. I tried custom command but no go!

ago by (180 points)

1 Answer

ago by (307k points)
0 votes

Hello,

You can use the following script from our repository: https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm. Pay attention that it is impossible to remote a user from Microsoft Entra dynamic groups (corresponding rules in the group settings must be updated), Adaxes rule-based groups (membership rules must be updated) and the primary AD group. The behavior is by design and cannot be worked around.

Related questions

Hi Is there a way to select all members of a group when you click on a group? I know you can do this via the Reports section, but it would be easier to just select them all when viewing the group.

asked Jan 28, 2013 by kjesoo (960 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

Hi, we've been using this script for some time but after the upgrade to 2023 it's now erroring out as below: As you can see I've done some logging out of ... .BindToObject($groupPath) is not returning an object. Any suggestions of how to fix? Thanks, Allister

asked Dec 1, 2022 by Allister (70 points)
0 votes
1 answer

Hi All, I am looking for a script i can use in adaxes, that removes all delegates for an exchange O365 mailbox, and reset their MFA tokens as well. I ... ($mailbox.Identity)" } } } # Disconnect from Exchange Online Disconnect-ExchangeOnline -Confirm:$false

asked Apr 18, 2024 by Brobertson92594 (20 points)
0 votes
1 answer

Hi all Primary objective is to manage cloud only group membership but in a future include cloud only accounts. I've registered a Azure domain which is managed by ... /www.adaxes.com/questions/12293/add-to-365-group-automation-for-new-account-creations Thanks

asked May 31, 2024 by MinorDruid (20 points)
0 votes
0 answers