mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-23 23:57:48 +00:00

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>
14 lines
339 B
JavaScript
14 lines
339 B
JavaScript
Ext.define('pmx-users', {
|
|
extend: 'Ext.data.Model',
|
|
fields: [
|
|
'userid', 'firstname', 'lastname', 'email', 'comment',
|
|
{ type: 'boolean', name: 'enable' },
|
|
{ type: 'date', dateFormat: 'timestamp', name: 'expire' },
|
|
],
|
|
proxy: {
|
|
type: 'proxmox',
|
|
url: "/api2/json/access/users?full=1",
|
|
},
|
|
idProperty: 'userid',
|
|
});
|