]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #4739: ui: user list: add column for group memberships
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 14 Jun 2023 12:31:31 +0000 (14:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Jun 2023 13:36:55 +0000 (15:36 +0200)
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 <d.csapak@proxmox.com>
 [T: Reword commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/UserView.js
www/manager6/form/UserSelector.js

index 957ff6827e8e13d2478591a6a18bdc7a24861ef8..39ca15ec92328b5ada4f8b8615674aacfa821ced 100644 (file)
@@ -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,
index 8fb31d7e39744df2bde14aca8868afda93e28a8a..5af30441b04dd1baa0433c22b3ed20efba9bd679 100644 (file)
@@ -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',
 });