0 votes

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 distrobution lists.

We also need to remove the user from all shared mailboxes they are a member of when disabling a user.

Thanks!

by (60 points)
0

Hello,

Membership in shared mailboxes is determined based on the Full Access and Send As permissions. As such, you just need to revoke the permissions. Unfortunately, there is no easy way to do that and it can only be done using a script. Do we understand correctly that you need to only revoke the permissions from shared mailboxes and none other?

0

Yes the script in my OP works well to remove users from all groups. (365 groups, DL, and security groups) but lacked removal from shared mailboxes.

I was able to re write some code from the above linked script and it works well removing the users from shared mailboxes now as well. We now include it with our disable user action.

I would upload the script but not sure how on the script repository.

1 Answer

0 votes
by (288k points)

Hello,

We currently do not allow posting scripts in our repository. You can post the script here if you like.

0

I was actually looking for a script just like this as well for the same scenario. We want to remove any users who have been previously delegated access to shared mailboxes once they are terminated.

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

I'd like to be able to either send an email report or export a CSV of all of the business rules carried out when a user is disabled. This would be ... Management Activity section but this includes things that weren't part of the disable operation. Thanks

asked Feb 19, 2020 by bavery (250 points)
0 votes
1 answer

The script create two reports of inactive workstation operating systems. The report is too detailed to run from one of the adaxes reports. Basically how can I set the script up to ... sure How I did this but I can't find it now (probably something simple).

asked Nov 30, 2022 by mightycabal (1.0k points)
0 votes
1 answer

Hi all, I've created a 'View User' command via the Web Interface Configurator. I don't want users to be able to make any changes, so I've created a Custom ... there any way to remove this, short of removing the entire Exchange section itself? Thanks, David

asked Sep 5 by dshortall (80 points)
0 votes
1 answer

The rule runs but since the first name and last name are passed as parameters, I only get the sequential # as a userID without the initials.

asked Oct 24 by curtisa (290 points)
3,541 questions
3,232 answers
8,225 comments
547,802 users