fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

lastUpdateInstant Not always updated on Identities table with user changes

Open jmusyj opened this issue 2 years ago • 3 comments

Deactivating a user account does not change lastUpdateInstant

Description

When deactivating a user via the Java clients deactivateUser() method, the lastUpdateInstant isn't being updated to the time we do the deactivation at.

Affects versions

Hosted - v. 1.30.2

Steps to reproduce

Steps to reproduce the behavior:

  1. Call deactivateUser() method for a particular user in the Java client
  2. Retrieve the deactivated user any way (ie. searchUsers())
  3. See lastUpdateInstant is not reflective of the time the deactivation happened

Expected behavior

I would expect the deactivation of a user account to update a User's lastUpdateInstant to the instant the deactivation occurred.

Screenshots

N/A

Platform

(Please complete the following information) Java client v. 1.30.2

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional info

Related forum post: https://fusionauth.io/community/forum/topic/2068/locking-a-user-account-does-not-change-lastupdateinstant

jmusyj avatar May 30 '22 13:05 jmusyj

Confirmed this with curl on 1.36.4 as well.

mooreds avatar May 30 '22 17:05 mooreds

This is probably working as designed, but it seems reasonable to update this value on a de-activate.

robotdan avatar Jun 22 '22 13:06 robotdan

This may also apply to other use cases such as email verification.

robotdan avatar Jun 27 '22 20:06 robotdan