Using groups simplifies the administration of multiple accounts by letting you assign settings once to a group, instead of multiple times to each individual user.
SFTPGo supports the following types of groups:
A user can be a member of a primary group and many secondary and membership groups. Depending on the group type, the settings are inherited differently.
:warning: SFTPGo groups are completely unrelated to system groups. Therefore, it is not necessary to add Linux/Windows groups to use SFTPGo groups.
The following settings are inherited from the primary group:
%username%
placeholder is replaced with the username, the %role%
placeholder will be replaced with the role name%username%
and %role%
placeholders will be replaced with the username and role name within the defined "prefix", for any vfs, and the "username" for the SFTP filesystem config0
for the user they are replaced with the value set for the group, if different from 0
. The password strength defined at group level is only enforce when users change their password%username%
placeholder is replaced with the username, the %role%
placeholder will be replaced with the role nameThe following settings are inherited from the primary and secondary groups:
/
path is ignored for secondary groups. The %username%
and %role%
placeholders are replaced with the username and role name within the virtual path, the defined "prefix", for any vfs, and the "username" for the SFTP and HTTP filesystem configThe settings from the primary group are always merged first. no setting is inherited from "membership" groups.
The final settings are a combination of the user settings and the group ones. For example you can define the following groups:
/vdir1
/vdir2
/vdir3
If you define users with a virtual directory to mount on /vdir
and make them member of all the above groups, they will have virtual directories mounted on /vdir
, /vdir1
, /vdir2
, /vdir3
. If users already have a virtual directory to mount on /vdir1
, the group's one will be ignored.
Please note that if the same virtual path is set in more than one secondary group the behavior is undefined. For example if a user is a member of two secondary groups and each secondary group defines a virtual folder to mount on the /vdir2
path, the virtual folder mounted on /vdir2
may change with every login.