How to redirect users after password reset from first time user
It's actually pretty easy, the user module adds user_pass_reset to the form_state all you need to do is check for that value:

function MyModule_form_user_form_alter(&amp;$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  if ($form_state-&gt;get('user_pass_reset')) {
    $form['actions']['submit']['#submit'][] = '_MyModule_user_profile_submit';
  }
}