Forum Discussion

6 Replies

  • GBushey's avatar
    GBushey
    Former Employee

    Highly suggest using a Watchlist to store the terminated employees.   There is a template for it and, with the help of a Logic App that queries the Graph API, you can keep it up to date automatically.

  • Brad_Hill - You need to store the list terminated employees and the use the below query let list_of_terminated_employeed = dynamic(['email address removed for privacy reasons','email address removed for privacy reasons']); SigninLogs | where TimeGenerated >ago(365d) | summarize arg_max(TimeGenerated,*) by UserPrincipalName | where UserPrincipalName has_any (list_of_terminated_employeed) And you need to ensure that the Microsoft Sentinel Workspace has the retention for the time period you are looking for,
    • Brad_Hill's avatar
      Brad_Hill
      Copper Contributor

      Thank you Samikroy, my apologies for just now seeing this answer.

Resources