From 7679ff9e602bcc9530ae57f67f1269940250c805 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 14 Jun 2023 14:31:31 +0200 Subject: [PATCH] fix #4739: ui: user list: add column for group memberships To get a fast overview in which groups each user is add a column that shows all groups they are a member of. To get that info we need to pass the 'full=1' parameter to the API endpoint, which then adds tokens and groups for each user to the result. This is basically only increasing transmission size a bit, as the backend doesn't needs to do any extra parsing for this information. Signed-off-by: Dominik Csapak [T: Reword commit message ] Signed-off-by: Thomas Lamprecht --- www/manager6/dc/UserView.js | 6 ++++++ www/manager6/form/UserSelector.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js index 957ff682..39ca15ec 100644 --- a/www/manager6/dc/UserView.js +++ b/www/manager6/dc/UserView.js @@ -217,6 +217,12 @@ Ext.define('PVE.dc.UserView', { }, dataIndex: 'keys', }, + { + header: gettext('Groups'), + dataIndex: 'groups', + renderer: Ext.htmlEncode, + flex: 1, + }, { header: gettext('Comment'), sortable: false, diff --git a/www/manager6/form/UserSelector.js b/www/manager6/form/UserSelector.js index 8fb31d7e..5af30441 100644 --- a/www/manager6/form/UserSelector.js +++ b/www/manager6/form/UserSelector.js @@ -7,7 +7,7 @@ Ext.define('pmx-users', { ], proxy: { type: 'proxmox', - url: "/api2/json/access/users", + url: "/api2/json/access/users?full=1", }, idProperty: 'userid', }); -- 2.39.5