Improved MeshCtrl.js AddToUserGroup instructions.

Ylian Saint-Hilaire committed Oct 5, 2020 at 09:48 UTC 086d8059c4a86534a8c66eace6f0b732ddd4bdbb
2 files changed +15 -2
meshctrl.js
+13 -2
@@ -403,7 +403,7 @@ if (args['_'].length == 0) {
403 console.log("Add a user, device or device group to a user group, Example usages:\r\n");
404 console.log(winRemoveSingleQuotes(" MeshCtrl AddToUserGroup --id 'user//abcdef' --groupid 'ugrp//abcdf'"));
405 console.log(winRemoveSingleQuotes(" MeshCtrl AddToUserGroup --id 'node//abcdef' --groupid 'ugrp//abcdf' --rights [rights]"));
406 - console.log(winRemoveSingleQuotes(" MeshCtrl AddToUserGroup --id 'mesh//abcdef' --groupid 'ugrp//abcdf' --rights [rights]a"));
406 + console.log(winRemoveSingleQuotes(" MeshCtrl AddToUserGroup --id 'mesh//abcdef' --groupid 'ugrp//abcdf' --rights [rights]"));
407 console.log("\r\nRequired arguments:\r\n");
408 if (process.platform == 'win32') {
409 console.log(" --id [id] - Identifier to add.");
@@ -413,7 +413,18 @@ if (args['_'].length == 0) {
413 console.log(" --groupid '[groupid]' - User group identifier.");
414 }
415 console.log("\r\nOptional arguments:\r\n");
416 - console.log(" --rights [number] - Rights granted for adding device or device group.");
416 + console.log(" --rights [number] - Rights granted for adding device or device group.");
417 + console.log(" - 4294967295 for full admin or the sum of the following numbers.");
418 + console.log(" 1 = Edit Device Group 2 = Manage Users ");
419 + console.log(" 4 = Manage Computers 8 = Remote Control ");
420 + console.log(" 16 = Agent Console 32 = Server Files ");
421 + console.log(" 64 = Wake Device 128 = Set Notes ");
422 + console.log(" 256 = Remote View Only 512 = No Terminal ");
423 + console.log(" 1024 = No Files 2048 = No Intel AMT ");
424 + console.log(" 4096 = Desktop Limited Input 8192 = Limit Events ");
425 + console.log(" 16384 = Chat / Notify 32768 = Uninstall Agent ");
426 + console.log(" 65536 = No Remote Desktop 131072 = Remote Commands ");
427 + console.log(" 262144 = Reset / Power off ");
428 break;
429 }
430 case 'removefromusergroup': {
meshuser.js
+2
@@ -49,6 +49,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
49 const MESHRIGHT_CHATNOTIFY = 0x00004000;
50 const MESHRIGHT_UNINSTALL = 0x00008000;
51 const MESHRIGHT_NODESKTOP = 0x00010000;
52 + const MESHRIGHT_REMOTECOMMAND = 0x00020000;
53 + const MESHRIGHT_RESETOFF = 0x00040000;
54 const MESHRIGHT_ADMIN = 0xFFFFFFFF;
55
56 // Site rights