Users tasks & history tasks returns 0 if the user added from Camunda Admin

Summery:
Yesterday we face a very strange problem,
The user tasks & history tasks returns null from the REST APIs if we added the users through Camunda (7.12) Admin and works fine if we added them through rest APIs.

Details:
Our application is deployed on two different servers (DB : SQL server 2017) and works perfectly ,we always add the users through the admin.
yesterday we did a restore for the same database on another server with DB (SQL server 2019)

All new users we added from the admin can be assigned to tasks successfully , but the get methods from the REST API for the user tasks & history task returns “0”.

We solved the issues by adding the users using the rest APIs. but the root cause of this issue is still unknown .