Back to Sftpgo

User

templates/webadmin/user.html

2.7.13.7 KB
Original Source

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

{{- if eq .Mode 3}}

Create one or more new users from this template

The following placeholders are supported

  • %username%, replaced with the specified username
  • %password%, replaced with the specified password

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}}

Users

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

Add

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

Public keys

{{- template "infomsg-no-mb" "general.pub_keys_help"}}

{{- range $idx, $val := .User.PublicKeys}}

{{$val}}

Delete

{{- else}}

Delete

{{- end}}

Add

TLS certificates

{{- template "infomsg-no-mb" "user.tls_certs_help"}}

{{- range $idx, $val := .User.Filters.TLSCerts}}

{{$val}}

Delete

{{- else}}

Delete

{{- end}}

Add

{{- end}} {{- if .Groups}}

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}}

Virtual folders

{{- template "infomsg-no-mb" "user.virtual_folders_help"}}

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

{{- range $.VirtualFolders}} {{.Name}} {{- end}}

{{- else}}

{{- range .VirtualFolders}} {{.Name}} {{- end}}

{{- end}}

Add

{{- end}}

Profile

Status ActiveInactive

Expiration

Email

Additional emails

{{- range $idx, $val := .User.Filters.AdditionalEmails}}

Delete

{{- else}}

Delete

{{- end}}

Add

{{- template "user_group_profile" .User.Filters}} Description

Additional info {{.User.AdditionalInfo}}

ACLs

Permissions {{- range $validPerm := .ValidPerms}} {{$validPerm}} {{- end}}

Per-directory permissions

{{- 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}}

Add

{{- 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}}

Disk quota and bandwidth limits

{{template "user_group_quota" .User}}

Advanced settings

{{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}}