Developer / Reference / TypeScript APIs

ScifeonUser

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com

This class contains information about the currently logged on user.

Example

API

Methods

static get(): ScifeonUser

Returns

The currently logged in user.

Properties

static id: string

The database id of the currently logged on user.

static email: string

The email of the currently logged on user.

static displayName: string

static firstName: string

static middleNames: string

static lastName: string

static phone: string

static departmentID: string

The department id of the currently logged on user.

static isActive: boolean

True if the currently logged on user is active. This will always be true, as the user cannot log in if it inactive.

static isAdmin: boolean

True if the currently logged on user is system administrator.

static Helper: ScifeonUserHelper

An instantiated instance of the ScifeonUserHelper class.

Constants

ROLE_KEYS: Map<string, string>

A map of allowed roles, currently:

Example

This can be used in conjunction with hasOneOfRoles():