- items: {
- type: Object,
- description: "User configuration (without password).",
- properties: {
- userid: {
- schema: PROXMOX_USER_ID_SCHEMA,
- },
- comment: {
- schema: SINGLE_LINE_COMMENT_SCHEMA,
- optional: true,
- },
- enable: {
- schema: user::ENABLE_USER_SCHEMA,
- optional: true,
- },
- expire: {
- schema: user::EXPIRE_USER_SCHEMA,
- optional: true,
- },
- firstname: {
- schema: user::FIRST_NAME_SCHEMA,
- optional: true,
- },
- lastname: {
- schema: user::LAST_NAME_SCHEMA,
- optional: true,
- },
- email: {
- schema: user::EMAIL_SCHEMA,
- optional: true,
- },
- },
- },
+ items: { type: user::User },
+ },
+ access: {
+ permission: &Permission::Anybody,
+ description: "Returns all or just the logged-in user, depending on privileges.",