Forum Discussion
Leaver mailboxes - Suggestions for automated retention
Hi, the Retention Policy is the easy part. You would need to configure it like this;
It's the automating the user deletion that I can't instantly think of how could be achieved. Also not sure it's a good idea as it could be prone to error and accounts that shouldn't be deleted may accidentally get targeted for deletion.
So I would say that you need a process as follows;
- HR informs IT of the users leaving date.
- IT assigns the user to the retention policy.
- IT removes the licence from the user object / or deletes the user object - thus making the mailbox inactive.
I guess maybe a flow or a form could be created to trigger the employee leavers process, but I would say that some manual intervention is always going to be needed along the way, and also that this is a good thing.
Hi PeterRising
Thanks for the reply, much appreciated.
I am not so worried about the user deletion from on-prem AD, the helpdesk can manually do this. Initially I was trying to think of a way to assign the retention policy automatically but now that you mention it, I think I can use a flow to allow the helpdesk handle this piece.
I do have one question which maybe you could help with. My understanding of retention policies targeted at Exchange, is that it is retains on an item level, rather than retaining the inactive mailbox as a whole. So the policy would retain emails within the mailbox based on their sent/received dates.
Do I understand corrrectly? If so then let's consider the following scenario:
1. HR informs UserA will leave. UserA has been with the company for 5 years (and has 5 years of email items)
2. Helpdesk applies retention policy which retains for 1 year and then deletes content
3. Helpdesk deletes user/remove o365 licence, and mailbox becomes inactive mailbox
At step 2, would the policy remove all email older than 12 months, so UserA would lose 4 years of email before the mailbox becomes inactive?
- VasilMichevAug 13, 2020MVP
Item-level hold is fine, any hold type is fine and as long as you have at least one type applying to the mailbox or items therein, the mailbox will be kept as inactive. Retention policies "translate" to in-place holds on the backend, and you can also use good old litigation hold.
- dunnep26Aug 13, 2020Copper Contributor
Thank you VasilMichev and PeterRising for the responses, they are most helpful.
At very simplistic level, what I am looking for is something I can apply and it retains the delete user's entire mailbox (and all the items, regardless of sent/received/modified date) for a set period of time. Almost like the old days of exporting a user mailbox to PST and keeping it in storage for a set period.
To pick up on your point Vasil, "Item-level hold is fine, any hold type is fine and as long as you have at least one type applying to the mailbox or items therein, the mailbox will be kept as inactive."
It seems to me that it would still be the case that if a retention policy or litigation hold is placed on the mailbox, whilst the mailbox would be kept as inactive as long as there an item which fulfilled the criteria of the hold (e.g. in my example above, the mailbox contained an item less than 12 months old), it is true to say the any items older than 12 months would still be purged from the inactive mailbox throughout the duration of the hold?
(At least this is what I understand from this - https://docs.microsoft.com/en-us/exchange/policy-and-compliance/holds/litigation-holds?view=exchserver-2019#more-information)
- VasilMichevAug 14, 2020MVP
That depends on the type of hold applied. If you want older items to get purged, you can apply a time-based hold. If not, you can apply an indefinite one, and remove it once you want to get rid of the inactive mailbox.
- PeterRisingAug 13, 2020MVP
OK, so if you click on info next to the retain content setting, it explains a bit further as follows;
So if you activate a retention policy for 1 year, and the mailbox contains items which were sent or received over a year ago, then this content will be deleted - so definitely something to be mindful / careful of.