signInActivity resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Provides the last interactive or non-interactive sign-in attempt time for a specific user. Because signInActivity describes a property of the user object, Microsoft Entra ID stores sign-in activity for your users for as long as the user object exists.

Effective December 1, 2023, the lastSuccessfulSignInDateTime property is available to provide the last successful sign-in time for a specific user, regardless of whether the sign-in was interactive or non-interactive. The data isn't backfilled for this property.

Properties

Property Type Description
lastSignInDateTime DateTimeOffset The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID.
lastSignInRequestId String Request identifier of the last interactive sign-in performed by this user.
lastNonInteractiveSignInDateTime DateTimeOffset The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID.
lastNonInteractiveSignInRequestId String Request identifier of the last non-interactive sign-in performed by this user.
lastSuccessfulSignInDateTime DateTimeOffset The datetime of the user's most recent successful sign in activity.
lastSuccessfulSignInRequestId String The requestID of the last successful signIn.

JSON representation

The following is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.signInActivity",
  "lastSignInDateTime": "String (timestamp)",
  "lastSignInRequestId": "String",
  "lastNonInteractiveSignInDateTime": "String (timestamp)",
  "lastNonInteractiveSignInRequestId": "String"
}