The “requires username” toggle was already enabled.
Min length is 1, Max length is 50.
I should mention that CREATING the user through the API works fine. In the CREATE command I also supply the username, and then it gets applied correctly.
It is the UPDATE that fails if I include the username. If I update some properties WITHOUT the username, it is also fine. The new username I am trying to set has only a few characters, so it is within the limits.
I have just tested and did not find the same observations. Instead, I managed to update the user’s username with new values, and it worked successfully. I used the Management API’s update a user endpoint and confirmed that it works as expected.
In this case, could you please clarify the errors you are getting?
And could you share with me your complete request?
BUT: it only works if I DO NOT update the name and the email in the same request.
Apparently the ONLY property I can specify in this update statement is the username. If I want to update name and email as well, then I have to do that in a separate request.