{{template "base" .}} {{- define "page_body"}}

{{- if eq .Mode 3}}

Create one or more new users from this template

The following placeholders are supported:

  • %username% will be replaced with the specified username
  • %password% will be replaced with the specified password

They will be replaced, with the specified username and password, in the 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.

{{if .User.Username}}

Please note that no credentials were copied from user "{{.User.Username}}", you have to set them explicitly.

{{end}}
{{- end}} {{- template "errmsg" .Error}}
{{- if eq .Mode 3}}

Users

For each user set the username and at least one of the password and public key

{{- else}}
{{- end}} {{- if .Roles}}
Users with a role can be managed by global administrators and administrators with the same role
{{- end}} {{- if ne .Mode 3}}

Public keys

{{- range $idx, $val := .User.PublicKeys}}
{{- else}} {{- end}}
{{- end}} {{- if .Groups}}

Groups

{{- end}} {{- template "fshtml" .FsWrapper}} {{- if .VirtualFolders}}

Virtual folders

Quota size/files -1 means included within user quota, 0 unlimited. Don't set -1 for shared folders. You can use MB/GB/TB suffix. Without suffix we assume bytes

{{- range $idx, $val := .User.VirtualFolders}}
{{- else}}
{{- end}}
{{- end}}

Per-directory permissions

{{- range $idx, $dirPerms := .User.GetSubDirPermissions -}}
{{- else}}
{{- end}}

Per-directory name patterns restrictions

{{- range $idx, $pattern := .User.Filters.GetFlatFilePatterns -}}
{{- else}}
{{- end}}

Per-source bandwidth speed limits

{{- range $idx, $bwLimit := .User.Filters.BandwidthLimits -}}
{{- else}} {{- end}}

{{- if eq .Mode 2}}
{{- end}}
{{- if eq .Mode 3}} {{- end}}
{{- end}} {{- define "extra_js"}} {{- end}}