I'd like some help with a script to revoke a users rights to a shared mailbox upon being removed from a security group.

I already have the reverse, a script that adds users to a shared mailbox, if they are a member of a group, now I just need the reverse.

by (280 points)

1 Answer

by (308k points)
Best answer
0 votes

Hello Dominik,

Unfortunately, we do not have the exact script. However, the following one from our repository should be a good start: https://www.adaxes.com/script-repository/remove-all-trustees-from-full-access-list-s559.htm. To achieve the desired, you need a script executed in a business rule triggering After removing a member from a group.

Related questions

A little bit of context: There are 3 departments that share 1 Active Directory. Now each department has its own OU. I would like to have an email sent when a user is ... if this is possible without Powershell? If not, is there a pre-existing script for this?

asked Oct 3, 2023 by Cas (220 points)
0 votes
1 answer

We would like the membership in a distribution group to be based on a particular M365 license a user has (for example, Microsoft Copilot for Microsoft 365 (SKU part number ... the group. Is there way to do that by making it a rule-based group?

asked 14 hours ago by RayBilyk (290 points)
0 votes
1 answer

Is there a way to run a custom powershell command on the users who are added or removed from a group?

asked Oct 12, 2012 by queenbee (20 points)
0 votes
1 answer

Hi, I've tried to modify a existing report to my needs, without success. The requirement ist to see the add/moved from a group. Like here: Would this be possible with Adaxes? Thanks

asked Feb 20, 2023 by boris (570 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