Forum Discussion

Grace Yin's avatar
Grace Yin
Iron Contributor
Jan 23, 2020

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

  • 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)

     

     

    Hope that answers your question!

     

    Best, Chris

    • Grace Yin's avatar
      Grace Yin
      Iron Contributor

      ChrisHoardMVP

       

      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,

       

       

      • kathy's avatar
        kathy
        Brass Contributor

        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.
        https://o365reports.com/2020/01/21/enable-mailbox-auditing-in-office-365-powershell/