Block Internal system roles from role assigning view of the users
@@ -1340,6 +1340,9 @@ public class UserRealmProxy {
String[] hybridRoles = ((AbstractUserStoreManager) admin).getHybridRoles(modifiedFilter);
+ // Filter the internal system roles created to maintain the backward compatibility.
+ hybridRoles = filterInternalSystemRoles(hybridRoles);
+
if (hybridRoles != null) {
Arrays.sort(hybridRoles);
}
@@ -1494,6 +1497,9 @@ public class UserRealmProxy {
}
}
+ // Filter the internal system roles created to maintain the backward compatibility.
+ internalRoles = filterInternalSystemRoles(internalRoles);
+
List<FlaggedName> flaggedNames = new ArrayList<FlaggedName>();
Arrays.sort(userRoles);
