Error thrown resolve_required_actions when checking for username in Keycloak

When our API calls Keylcoak, we are getting error resolve_required_actions and not able to fetch user details. Any idea what is causing this ?

At some point in the past, the user has been asked to perform a task, such as verify email, update password. See here:

https://wjw465150.gitbooks.io/keycloak-documentation/content/server_admin/topics/users/required-actions.html

If there are any “Required User Actions” you should be able to remove them from the Users > Details page.

In my case there were no “Required User Actions” so I had to scratch around the database. There is a table ‘user_required_action’. You will need to delete from this table where ‘user_id’ = <your_users_subject>.

In my case, it appears that even though the required actions had expired, they were still preventing the user from logging in.