What is the Keycloak API to enable "Edit username" capability of a Realm?

The best way (I’ve found) to determine the API method is to open the browser’s Developer Tools → Network tab and look at the request when you update it using the Keycloak Admin UI. Otherwise, the API docs are here: Keycloak Admin REST API

1 Like

While creating the realm, needed to pass "editUsernameAllowed": true. This worked!

1 Like