os.user()

Get a user object.

Syntax

os.user(userId string) User os.user(userId string) null

Parameters

userId string

The user’s userId.

Description

Get a user object.

Examples

Get the user object for the sandbox website’s owner.

Get a user that is not registered on the website.

Get the Anonymous user object. Built-in accounts are accessible via their userIds but they are not returned when listing registered users.