Open paolor1965 opened 3 years ago
Currently there is no option in UI. but it's possible through meshctrl ( using command and scheduled task)
THANKS OF THE ANSWER, ALSO A COMMAND LINE IS MORE THAN SUFFICIENT
Normally you run your MeshCentral server like this:
node node_modules\meshcentral To run meshctrl, you go into the same place as where you run your MeshCentral server and run this:
node node_modules\meshcentral\meshctrl It will give you help on how to get started. If you run with not parameters, you should see this:
MeshCtrl performs command line actions on a MeshCentral server. Information at: https://meshcommander.com/meshcentral No action specified, use MeshCtrl like this:
meshctrl [action] [arguments]
Supported actions: Help [action] - Get help on an action. ServerInfo - Show server information. UserInfo - Show user information. ListUsers - List user accounts. ListUserSessions - List online users. ListUserGroups - List user groups. ListDevices - List devices. ListDeviceGroups - List device groups. ListUsersOfDeviceGroup - List the users in a device group. ListEvents - List server events. DeviceInfo - Show information about a device. Config - Perform operation on config.json file. AddUser - Create a new user account. EditUser - Change a user account. RemoveUser - Delete a user account. AddUserGroup - Create a new user group. RemoveUserGroup - Delete a user group. AddToUserGroup - Add a user, device or device group to a user group. RemoveFromUserGroup - Remove a user, device or device group from a user group. RemoveAllUsersFromUserGroup - Remove all users from a user group. AddDeviceGroup - Create a new device group. RemoveDeviceGroup - Delete a device group. EditDeviceGroup - Change a device group values. MoveToDeviceGroup - Move a device to a different device group. AddUserToDeviceGroup - Add a user to a device group. RemoveUserFromDeviceGroup - Remove a user from a device group. AddUserToDevice - Add a user to a device. RemoveUserFromDevice - Remove a user from a device. SendInviteEmail - Send an agent install invitation email. GenerateInviteLink - Create an invitation link. Broadcast - Display a message to all online users. ShowEvents - Display real-time server events in JSON format. RunCommand - Run a shell command on a remote device. Shell - Access command shell of a remote device. Upload - Upload a file to a remote device. Download - Download a file from a remote device. DeviceOpenUrl - Open a URL on a remote device. DeviceMessage - Open a message box on a remote device. DeviceToast - Display a toast notification on a remote device. DevicePower - Perform wake/sleep/reset/off operations on remote devices. DeviceSharing - View, add and remove sharing links for a given device.
Supported login arguments: --url [wss://server] - Server url, wss://localhost:443 is default.
this command blocks the user, ./meshctrl.js edituser --userid exampleuser --locked --loginuser "admin-user" --loginpass
If I understand correctly I could schedule the execution of the command in crontab on a certain date It's correct? I was hoping there was a native option only available on the command line Thanks anyway for the wonderful work
@paolor1965 - yes you need to schedule the command in crontab.
hello, I could ask if it was possible to implement a time limit for users, in order to automatically disable them at the end of the term Thanks for everything Paul