I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
 - [x] Bug report
 - [ ] Performance issue
 - [ ] Documentation issue or request
 
Current behavior
When calling PostUserAsync on the UserManagementClient it results in a SquidexManagementException but with a status code of 200.
So, the request went fine, user is created but it throws an exception.
Can work around it by catching the exception like so:
catch (SquidexManagementException sme) when (sme.StatusCode == 200)
{
     var user = JsonConvert.DeserializeObject<UserDto>(sme.Response);
     ...
}
Expected behavior
No exception is thrown.
Minimal reproduction of the problem
var request = new CreateUserDto
{
    Email = "test@acme.com",
    Password = "a1b@c#Def",
    DisplayName = "Test"
};
var result = await userManagementClient.PostUserAsync(request);
Environment
- [ ] Self hosted with docker
 - [ ] Self hosted with IIS
 - [ ] Self hosted with other version
 - [ ] Cloud version
 - [x] Client Library
 
Version: 10.1.0