Forum Discussion
User sign-in mailbox log
Hi,
I need a report for user log-in/log-out mailbox time. Is it possible to get it on admin portal? We want to get report for a specific user whose log-in and log out his/her mailbox time.
Please help!
Thanks in advance!
4 Replies
You can get the user sign in to the mailbox from the audit log in the Office 365 security and compliance centre (under Exchange Online section)
Hope that answers your question!
Best, Chris
- Grace YinIron Contributor
Hi Chris,
Thank you for your reply. I have tried it, I selected "User signed in to mailbox", but the result is "no data available." If I search other activities, I got results. What could be the problem?
Thanks,
- kathyBrass Contributor
Mailbox sign-in activities are not audited by default. You need to enable mailbox auditing for 'MailboxLogin' operation.
You can use the below code to enable mailbox auditing for specific users.
Set-Mailbox -Identity <User Identity> -AuditEnabled $true -AuditOwner MailboxLogin
Or you can use the below pre-built script to enable auditing for MailboxLogin/all mailbox actions for all Office 365 mailboxes.
https://o365reports.com/2020/01/21/enable-mailbox-auditing-in-office-365-powershell/