<div dir="ltr"><div>Hello. What is the role of a user to reset a password of another user by calling a REST request: /reset-passschord?</div><div>For example:</div><div>  $scope.setCredential = function(loginname) {</div><div>      $http.put(&quot;/admin/realms/&quot; + auth.authz.realm + &quot;/users/&quot;+loginname+&quot;/reset-password&quot;,{PASSWORD : loginname, SECRET : loginname, temporary : true }).success(function() {</div><div>      console.log(&quot;Reset password to temporary OK!&quot;);</div><div>      })</div><div>    };</div><div><br></div><div>    $scope.createUser = function() {</div><div>      $http.post(&quot;<a href="http://localhost-auth:8080/auth/admin/realms/">http://localhost-auth:8080/auth/admin/realms/</a>&quot; + auth.authz.realm + &quot;/users&quot;,{username:&quot;bob&quot;, enabled: true, firstName:&quot;Bob&quot;,lastName:&quot;Ivanov&quot;,emailVerified:false}).success(function() {</div><div>      $scope.setCredential(&quot;bob&quot;);</div><div>      });</div><div>    };</div><div>Thank you.</div></div>