title: keycloak api user creation
body: <p>I am trying to create a user on keycloak with the API. I am coding in Python.</p>
  
  <p>I have succesfully obtained the token and used it to obtain data from the API, asking for the user list: </p>
  
  <pre><code>endpoint = 'http://server/auth/admin/realms/master/users'
  bearertok = "bearer " + token
  headers = {'Content-type': 'application/json', 'Accept': 'application/json', 'Authorization': bearertok }
  resp = requests.get(endpoint, headers=headers)
  </code></pre>
  
  <p>When I try to use POST to create a new user I do it like this:</p>
  
  <pre><code>endpoint = 'http://server/auth/admin/realms/master/users'
  bearertok = "bearer " + token
  data = {'username': 'xyz', 'firstName':'xyz','lastName':'xyz', 'email':'demo2@gmail.com', 'enabled':'true'}
  headers = {'Content-type': 'application/json', 'Accept': 'application/json', 'Authorization': bearertok }
  resp = requests.post(endpoint, headers=headers, data=data)
  </code></pre>
  
  <p>When I run this I get a 500 error from the server.</p>
  
  <p>What am I doing wrong?</p>