SignInActivity returned blank

Glenn Evans 1 Reputation point
2021-11-16T10:21:56.473+00:00

Using the beta profile this command yields no data:

(get-mguser -userid <userid>).signinactivity

Just two blank headings LastSignInDateTime LastSignInRequestId

We do have an Azure Active directory plan 1 which I believe is required to retrieve this information.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,685 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 26,616 Reputation points Microsoft Employee
    2021-11-24T00:27:36.98+00:00

    @Glenn Evans
    Thank you for your post!

    I ran into the same issue when trying to run (Get-MgUser -userId 'userID').SignInActivity. Additionally, when it comes to the Get-MgUser Graph PowerShell command, I didn't see the SignInActivity parameter as a supported parameter within the documentation.
    151936-image.png

    If you're trying to get the SignInActivity for a user, you should be able to follow this 3rd party article written by one of our MVPs - Reporting on user’s last logged in date in Office 365. There's also a PowerShell script that leverages the graph.microsoft.com/beta/users REST API, which could be beneficial to resolving your issue.

    I hope this helps!

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.