I have problem to check if a user has really quit the company (except asking HR:-)) because by checking the lastlogon attribute in AD is not enough. If a user just uses his email the lastlogon is not completely accurate. Also the LastLogonTime in O365 mailbox is not accurate at all (many things can change that value).
Mailbox activity report from O365 can't be manipulate by Powershell...have to download manually. I need something that I can code.
So what do you think I check lastlogon and pwdLastSet attributes? Like if both values are over 90 days then the user is really gone.