diff --git a/settings/js/users.js b/settings/js/users.js
index ab08d7099c6..01a845367e2 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -91,13 +91,13 @@ var UserList = {
tr.find('td.displayName > span').text(displayname);
var groupsSelect = $('')
.attr('data-username', username)
- .attr('data-user-groups', [groups]);
+ .data('user-groups', groups);
tr.find('td.groups').empty();
if (tr.find('td.subadmins').length > 0) {
var subadminSelect = $('