How to retrieve a user's sign-in logs longer than 7 days.

Linus Luo 0 Reputation points
2024-12-19T21:45:16.2533333+00:00

Is there a way to retrieve a user's sign-in logs longer than 7 days?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,888 questions
{count} votes

2 answers

Sort by: Most helpful
  1. hossein jalilian 9,615 Reputation points
    2024-12-19T22:31:55.7933333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Yes, Upgrade to Azure AD Premium P1 or P2 license, which extends the default retention period to 30 days for sign-in logs.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

  2. Raja Pothuraju 10,935 Reputation points Microsoft Vendor
    2024-12-20T02:50:45.1933333+00:00

    Hello @Linus Luo,

    Thank you for posting your query on Microsoft Q&A.

    Assuming you have a Microsoft Entra ID Free license in your tenant, as you mentioned, you are looking for user sign-in logs beyond seven days.

    Unfortunately, with a Microsoft Entra ID Free license, sign-in logs are only retained for seven days. To have sign-in logs available for 30 days, you would need at least a Microsoft Entra ID P1 or P2 license.

    For more information on the data retention policies and licensing requirements, please refer to the following document: How long does Microsoft Entra ID store the data?

    User's image

    If you have a Premium P1 or P2 license for your directory and are still seeing only seven days of logs, please let me know so I can investigate further and assist with a solution.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks,
    Raja Pothuraju.

    0 comments No comments

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.