Forum Discussion
Grace Yin
Nov 27, 2018Iron Contributor
Is there a easy way to exit a user?
Hi, We have hybrid Office 365 environment. Every time when there is a user left, I first need to remove the user's Office 365 license, then convert it to shared mailbox for other to access, last ...
- Nov 30, 2018
Here's what we do:
- As the user exits, the AD account gets disabled
- A daily scheduled script which:
1. Pulls user accounts that were disabled in the last 24 hours
2. Connects to O365
3. Enables 'x' days litigation hold on the identified mailboxes
4. Waits 60 mins (for the LitHold to take effect)5. Prefixes the Alias (from on-premise) with "CAS_}"
In the next sync interval, these accounts will become inactive mailboxes and will remain in the O365 system for 'x' days per the litigation hold interval. The licenses get automatically freed up as the accounts become inactive.
May not be the best approach as every organization would have their own needs, this approach works for us (open to suggestions/improvements).
Nov 27, 2018
Would advise powershell when you need to do things in batches. Some great powershell users on here may have scripts they can provide or push you in the right direction
Best, Chris
Best, Chris
Nov 27, 2018
Please check out the following script:
https://amp.reddit.com/r/sysadmin/comments/73tt33/by_request_terminated_user_script_365/
Adam
https://amp.reddit.com/r/sysadmin/comments/73tt33/by_request_terminated_user_script_365/
Adam
- Nov 27, 2018That's a pretty nifty script you got there!
- Nov 27, 2018Sure is!