Forum Discussion
Gonwild
Jun 03, 2022Copper Contributor
Identifying stale guest users - 'lastSignInDateTime' not reliable?
So, I listed all of our tenant guest users 'lastSignInDateTime' attribute from MS Graph. Most have up to date values here, but some got no info here (I guess its because they were never logged on), ...
- Jun 03, 2022
If Teams is all they're signing into and are doing so via the app, they're probably not triggering in "interactive login".
- signInActivity resource type - Microsoft Graph beta | Microsoft Docs
- Why is the lastSignInDateTime property only updated with interactive sign-ins? - Microsoft Tech Community
PS: Your assumption is correct about the early date, as that is the minimum value of a [DateTime] structure. The minimum value does typically indicate inactivity in attributes that cannot be null.
Cheers,
Lain
LainRobertson
Jun 03, 2022Silver Contributor
If Teams is all they're signing into and are doing so via the app, they're probably not triggering in "interactive login".
- signInActivity resource type - Microsoft Graph beta | Microsoft Docs
- Why is the lastSignInDateTime property only updated with interactive sign-ins? - Microsoft Tech Community
PS: Your assumption is correct about the early date, as that is the minimum value of a [DateTime] structure. The minimum value does typically indicate inactivity in attributes that cannot be null.
Cheers,
Lain
Gonwild
Jun 07, 2022Copper Contributor
aha, I did not know this. Yes, in this case the user was signing into the app. Guess one have to take non-interactive logins in account when ruling out stale users. thanks!