templates/webadmin/user.html
{{template "base" .}} {{- define "page_body"}}
{{- if eq .Mode 3}}
The following placeholders are supported
Placeholders will be replaced in paths and credentials of the configured storage backend.
The generated users can be saved or exported. Exported users can be imported from the "Maintenance" section of this SFTPGo instance or another.
{{- end}} {{- template "errmsg" .Error}} {{- if eq .Mode 3}}
For each user set the username and at least one of the password and public key
Require password change
{{- else}} Username
{{- end}} {{- if .Roles}} Role {{- range .Roles}} {{.Name}} {{- end}} Users with a role can be managed by global administrators and administrators with the same role
{{- end}} {{- if ne .Mode 3}} Password
Require password change
User must change password from the WebClient at next login
{{- template "infomsg-no-mb" "general.pub_keys_help"}}
{{- range $idx, $val := .User.PublicKeys}}
{{$val}}
{{- else}}
{{- end}}
{{- template "infomsg-no-mb" "user.tls_certs_help"}}
{{- range $idx, $val := .User.Filters.TLSCerts}}
{{$val}}
{{- else}}
{{- end}}
{{- end}} {{- if .Groups}}
{{- template "infomsg" "user.groups_help"}} Primary group {{- range .Groups}} {{.Name}} {{- end}}
Secondary groups {{- range .Groups}} {{.Name}} {{- end}}
Membership groups {{- range .Groups}} {{.Name}} {{- end}}
{{- end}} {{- template "fshtml" .FsWrapper}} {{- if .VirtualFolders}}
{{- template "infomsg-no-mb" "user.virtual_folders_help"}}
{{- range $idx, $val := .User.VirtualFolders}}
{{- range $.VirtualFolders}} {{.Name}} {{- end}}
{{- else}}
{{- range .VirtualFolders}} {{.Name}} {{- end}}
{{- end}}
{{- end}}
Status ActiveInactive
Expiration
{{- range $idx, $val := .User.Filters.AdditionalEmails}}
{{- else}}
{{- end}}
{{- template "user_group_profile" .User.Filters}} Description
Additional info {{.User.AdditionalInfo}}
Permissions {{- range $validPerm := .ValidPerms}} {{$validPerm}} {{- end}}
{{- template "infomsg-no-mb" "filters.directory_permissions_help"}}
{{- range $idx, $dirPerms := .User.GetSubDirPermissions -}}
{{- range $validPerm := $.ValidPerms}} {{$validPerm}} {{- end}}
{{- else}}
{{- range $validPerm := .ValidPerms}} {{$validPerm}} {{- end}}
{{- end}}
{{- template "user_group_perms" .User.Filters}} {{- template "user_group_access_time" .User.Filters}} Max sessions
Denied protocols {{- range $protocol := .ValidProtocols}} {{$protocol}} {{- end}}
Denied login methods {{- range $method := .ValidLoginMethods}} {{$method}} {{- end}}
Require 2FA for {{- range $protocol := .TwoFactorProtocols}} {{$protocol}} {{end}}
Web client/REST API {{- range $option := .WebClientOptions}} {{$option}} {{- end}}
Denied IP/Mask {{.User.GetDeniedIPAsString}}
Allowed IP/Mask {{.User.GetAllowedIPAsString}}
{{template "user_group_quota" .User}}
{{template "user_group_advanced" .User.Filters}} External auth cache time
UID
GID
{{- if eq .Mode 2}} Disconnect the user after the update
This way you force the user to login again, if connected, and so to use the new configuration
{{- end}} Submit Please wait...
{{- end}} {{- define "extra_js"}} {{- end}}