diff --git a/modules/apps/users-admin/users-admin-web/src/main/resources/META-INF/resources/user/roles.jsp b/modules/apps/users-admin/users-admin-web/src/main/resources/META-INF/resources/user/roles.jsp
index 80f753b17c9d9928d6ef576f305bc0d7593125f3..2a109fb2d7a25d2ce8880977ab95bd24bd6655cc 100644
--- a/modules/apps/users-admin/users-admin-web/src/main/resources/META-INF/resources/user/roles.jsp
+++ b/modules/apps/users-admin/users-admin-web/src/main/resources/META-INF/resources/user/roles.jsp
@@ -741,7 +741,7 @@ String organizationRoleSyncEntitiesEventName = liferayPortletResponse.getNamespa
 					rowColumns.push('<i class="' + iconCssClass + '"></i> ' + LString.escapeHTML(name));
 
 					if (groupName) {
-						rowColumns.push(groupName);
+						rowColumns.push(Liferay.Util.escapeHTML(groupName));
 					}
 
 					if (groupId) {