Issue Summary
Reactivating a user that was deactivated a long time ago via a PATCH request produces error 400 - Cannot update user with id 42889. UserEndDate cannot be set before 1 days in past.
Other PATCH requests to the user fail with the same error.
Steps to Reproduce
- Have a user that's been deactivated for a while
- Try to use PATCH request to activate them:
[ { "op": "replace", "path": "/isLocked", "value": 0 } ]
- Observe the error message:
400 Bad Request Cannot update user with id 42889. UserEndDate cannot be set before 1 days in past.
Expected Results
It is expected that userEndDate will be automatically cleared and the user is activated with the above request.
The above request works fine when the user has been deactivated recently.
In the UI there's no requirement to reset userEndDate manually.
Actual Results
The error 400 occurs.
Workaround
Reset the userEndDate manually at the same time by using the body:
[ { "op": "replace", "path": "/isLocked", "value": 0 }, { "op": "replace", "path": "/userEndDate", "value": null } ]
- relates to
-
JIRAALIGN-1610 [JIRAALIGN-1610] API 2.0 : Deactivating a user via PATCH call towards /align/api/2/Users/id endpoint produces inconsistent results
- Closed
-
ALIGNSP-17580 Loading...