os.users()

Get registered users.

Syntax

os.users() []User os.users(registrationStatus int) []User

Parameters

registrationStatus int

The registration status to filter for.

  • 1: active (default)
  • 2: pending
  • 3: invited
  • 4: banned

When registrationStatus is not provided, it defaults to listing users with active registrations.

Description

Get registered users filtered by their registration status.

Examples

Get all registered users with active registrations, including the website owner. (In this sandbox, there are no registered users other than the website owner.)

Get all registered users with active registration status.

Get all registered users with pending registration status.

Get all registered users with invited registration status.

Get all registered users with banned registration status.