Besides adding a user to any group in the User panel, you can also add a user to a group via an SSH terminal.
Follow the steps shown below in order to do this:
Open the CompleteFTP Manager and open the Extensions panel.
Click Add extension->Javascript(JSS) extensions->Custom Commands.
Enter AdminAPI into the Name field then enter the following JSS code:
function groupadd(userName, groupName) {
var config = system.getConfig();
var user = config.users.get(userName);
var group = config.groups.get(groupName);
group.members.add(user);
config.applyChanges();
}
The process trigger should now look like this:
Select the Permissions tab.
Click Add user permission and select AdminAPI and your user.
Create a group into which the user will be added.
Add the login user to the admins group.
Now check if you can add the user to the group which you created above.
Open SSH.
Login with SSH.
Add the user to the group with the command shown below.
groupadd myuser mygroup
Now check in the User panel to see if the user has been added to the group.
You have now successfully added the user into the available group.