From e01c789a93f80403f188fb4c94a7e96df4f9c5a4 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Tue, 1 Dec 2015 15:13:09 +0100 Subject: [PATCH] KEYCLOAK-2176 User added by add-user script doesn't have access to account management --- .../src/main/java/org/keycloak/wildfly/adduser/AddUser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }; } }