Difference between Get-AzureADAuditSignInLogs and Search-UnifiedAudit logs - when shuold I use exactly

Ganga Raju 0 Reputation points
2023-07-12T20:53:25.1733333+00:00

What is the Difference between Get-AzureADAuditSignInLogs and Search-UnifiedAudit logs

Get-AzureADAuditSignInLogs: This cmdlet is specifically designed to retrieve sign-in audit logs for Azure AD users. It allows you to retrieve information about user sign-in activities, including successful and failed sign-ins, sign-in errors, and additional details such as IP addresses and user agents. It focuses on authentication events and provides insights into user sign-in behavior.

on the other hand,

Search-UnifiedAuditLog: This cmdlet is part of the Office 365 Security & Compliance Center module and is used to search and retrieve a wide range of audit log data across multiple Microsoft 365 services. It allows you to search for audit events related to various activities, including user and admin actions, mailbox activities, file activities, sharing events, and more. It provides a comprehensive view of the organization's audit logs and allows for advanced search capabilities and filtering based on specific criteria.

with that said, if I want to find inactive users in O365, how do I find them. 

Do I need to search in Get-AzureADAuditSignInLogs or Search-UnifiedAudit logs - 

-- I suppose I need to search in  Get-AzureADAuditSignInLogs - but i am anot sure. can someone assist,

I see on internet browsing some sites shows to search in unified audit logs, but I dont understnad the logic why they are using it, - as per the description, all signs in wil be Azure AD Audit Signin logs. 

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

2 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-07-12T21:02:13.8833333+00:00

    Hello @Ganga Raju !

    Welcome to Microsofr QnA!

    I suggest you have a look here

    https://www.sharepointdiary.com/2023/01/find-inactive-users-in-office-365.html

    The link provides all the details in question

    The Azure AD is the Identity Provider , it may cover more than just O365

    On the other hand Office 365 is the SaaS Platform for Email , One Drive etc.

    It always depends what do you define as inactivity !

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  2. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2023-07-13T05:47:40.0766667+00:00

    @Ganga Raju Thank you for reaching out to us, reviewed your requirement related to find inactive users within Azure AD/O365, wanted to check if you can try this approach https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-manage-inactive-user-accounts – Provides the last interactive and non-interactive sign-in time for a specific user. Make sure to check out how to manage inactive user accounts in Azure AD - https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-manage-inactive-user-accounts

    Let me know if you have any further questions, feel free to post back.

    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.