current user
This block is part of the users group and was last modified in core v15.0.2.
current user v15.0.2 Returns the current logged-in user object as user-pin, and its guid.
- user
user - guid
valuev15.0.2The logged-in user's guid (field:
_meta.guid), the valueuser_get_guidreads from the user pin. Empty when nobody is logged in.
Outputs the current logged-in user's full document on user, loaded fresh from the users store by the session user's guid. Falls back to the session's in-memory user object when the store has no persisted copy; outputs an empty object {} when nobody is logged in. The guid pin is that user's _meta.guid string, taken from the session without a store read: exactly what user_get_guid would read from the user pin, "" when nobody is logged in. When nothing in the blueprint reads the user pin, a normal run (not a simulation or studio run) skips the users-store read entirely, so wire guid directly instead of chaining user_current.user into user_get_guid.
current user outputs the user behind the running session. Most blueprints immediately take it apart with get guid, and the guid then feeds a field of new object or a query.
Commonly used with
In production blueprints, this block is most often wired together with:
- get guid: this block feeds into it. Returns the guid (field: _meta.guid) of the given user.
- get fields: this block feeds into it. Gets the given fields from user data and returns this per data-pin.
- cast to object: this block feeds into it. Converts an user object type to an object type.
Used in these guides
These documentation pages use or explain this block:
- Building User Authentication
- File Upload & Processing
- Common Blueprint Patterns
- Tips & tricks
- Example: Booking System
- Example: Task Management App
- Example: User Management System
- Build Your First CRUD App
Version history
Introduced in v15.0.2.
Back to
users Return to the main group to view all sub-groups Back to current user Return to the group to view all blocks within this group 