diff --git a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java index 7be53c6473..ff4cf35eed 100644 --- a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java +++ b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java @@ -154,9 +154,9 @@ public class AddUser { roles = rolesString.split(","); } else { if (realmName.equals("master")) { - roles = new String[] { "admin" }; + roles = new String[] { "admin", "account/manage-account" }; } else { - roles = new String[] { "realm-management/realm-admin" }; + roles = new String[] { "realm-management/realm-admin", "account/manage-account" }; } }