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 (277k 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
0 answers

We are in hybrid mode with 365. All the accounts we create have to made with a .com instead of .local. How can I make that change in adaxes? Or is this some default I need to change in AD instead?

asked Apr 11, 2022 by LEGIT1 (150 points)
0 votes
1 answer

I need a list of all the URLs that Adaxes creates in IIS on the server Adaxes is installed on.

asked Feb 6, 2020 by DaralenManta (20 points)
3,407 questions
3,104 answers
7,898 comments
545,752 users