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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,472 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful