Skip to content

@serenity-is/corelib / UserDefinition

Interface: UserDefinition

Properties

DisplayName?

optional DisplayName: string

Display name of the logged user

Defined in

src/q/userdefinition.ts:9


IsAdmin?

optional IsAdmin: boolean

This indicates that the user is a super "admin", e.g. assumed to have all the permissions available. It does not mean a member of Administrators, who might not have some of the permissions

Defined in

src/q/userdefinition.ts:13


Permissions?

optional Permissions: object

A hashset of permission keys that the current user have, explicitly assigned or via its roles. Note that client side permission checks should only be used for UI enable/disable etc. You should not rely on client side permission checks and always re-check permissions server side.

Index Signature

[key: string]: boolean

Defined in

src/q/userdefinition.ts:19


Username?

optional Username: string

Username of the logged user

Defined in

src/q/userdefinition.ts:5