User sign-in mailbox log

Iron Contributor

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

@Grace Yin 

 

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)

 

SCC1.PNG

 

Hope that answers your question!

 

Best, Chris

@Christopher Hoard

 

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,

 

 

You'll need to expand the date range. With Modern authentication, clients rarely do a "full" login, they just reuse the existing token so the number of login events can be very limited.

 

What exactly are you trying to achieve here?

@Grace Yin 

 

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.
Enable Mailbox auditing for Office 365 Mailboxes