check Office 365 Exchange Online logon history

Services 1 Reputation point
2021-10-06T23:36:24.793+00:00

I am trying to see logon history for a specific user and I am only about to see it for the past 7 days. According to many documentations, there should be logs for more than 7 days up to 30, some up to 90 days. This user has had an Office 365 Exchange Online since July. So, I should be able to see the history. But I cannot. Any suggestions would be a big help. I've signed up for a AZ AD P2 trial thinking maybe I don't have the correct license, but to no awail.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,178 questions
{count} votes

2 answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2021-10-07T06:49:42.177+00:00

    @Services

    You could use the Audit function in Microsoft 365 compliance, it could search logs up to 90 days:
    138441-qa-kyle-14-46-20.png
    138451-qa-kyle-14-48-51.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

  2. Amit Singh 5,306 Reputation points
    2021-10-07T09:08:03.203+00:00

    If you want to get Office 365 Login history for single and multiple users, you can pass usernames using –UserName param as comma separated values.

    For single user

    ./O365UserLoginHistory.ps1 -UserName "admin@Company portal .com"

    For multiple user

    ./O365UserLoginHistory.ps1 -UserName "admin@Company portal .com,hr@Company portal .com"

    The exported report contains login history of admin and hr user.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.