The Current User object
Information about the current logged-in or authenticated user.
You can reference the current_user
object when a workflow is manually run from the Workflow IDE or triggered from an app by a user. When a workflow is automatically triggered using a schedule, webhook, or query trigger, Retool assigns an admin from the organization as the current_user
.
To set the current_user
to null
on automatic workflow runs, reach out to your account manager.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
Examples
jenny@example.com
externalIdentifier
The external identifier. This value is null
if you are not using API-based authentication.
Type | string |
Configurability | Read-only |
Default | null |
Examples
"Jenny"
Examples
"Jenny Appleseed"
groups
A list of assigned permission groups.
Type | array |
Array values | object |
Configurability | Read-only |
Default | null |
Array Object Properties
Examples
{
"id": "1234567890",
"name": "admin"
},
{
"id": "9876543210",
"name": "All users"
}
Examples
"Appleseed"
Examples
"en"
metadata
Relevant metadata for the item.
Type | array |
Array values | object |
Configurability | Read-only |
Default | null |
profilePhotoUrl
The profile photo URL. Available when using SSO authentication and is supplied by the IdP (Identity Provider).
Type | string |
Format | URL |
Configurability | Read-only |
Default | null |
Examples
https://example.com/photo.jpg
Examples
"user_366e154sdfg34b9bdeds32936"