PowerShell command to see last login / activity for Service Principal and/or App Registration

Kenneth Huddleston 145 Reputation points
2023-03-01T18:58:48.77+00:00

Is there a powershell command that can be used to retrieve activity details for a Service Principal or App Registration? Specifically, if I wanted to query via powershell the 'last' login of a particular SP or App.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2023-03-01T19:59:28.9566667+00:00
    0 comments No comments

0 additional answers

Sort by: Most 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.