Compare
Websites
Templates
Store
Pricing
Docs
Blog
Log in
Sign up
How to
How it works
API reference
File types
sjs-4
Collection
File
Injected variables
User
anonymous
banned
domain
imageLink
imageTag
imageUrl
member
name
nameLink
owner
notRegistered
pending
url
userId
os
util
Modules
sjs-4e
accept-2
accept-3
app-1
contextmenu-1
css-1
css-2
css-2-wrapper
html-1
image-1
markdown-1
redirect-301
sh-1
static-1
svg-1
deprecated types
File links
App interface
Hotkeys & mouse controls
HTML classes
Filesystem Query Language
Reserved namespaces
Filesystem interface versions
Glossary
User.prototype.name()
Get the user’s name.
Syntax
user.name() string
Description
Get the user’s name.
Examples
Get the sandbox user’s name.
var f = new File() response.body(f.createdBy().name())
Run