title: Setting required action on new keycloak user account
body: <p>I am using a client to create a new keycloak user. Something like this: </p>
  
  <pre><code>keycloak.realm(realm)
          .users()
          .create(user);
  </code></pre>
  
  <p>The user variable is a <code>UserRepresentation</code> object, and I'm trying to add an <code>Update Password</code> required action:</p>
  
  <pre><code>user.setRequiredActions(singletonList("Update Password"))
  </code></pre>
  
  <p>User gets created ok, the problem is that I don't have the required action set</p>
  
  <p><a href="https://i.stack.imgur.com/1ZQRr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1ZQRr.png" alt="enter image description here"></a></p>
  
  <p>Not sure what I'm doing wrong, should I specify a different value in the required actions list? </p>
  
  <p>Thanks</p>