@serenity-is/corelib / UserDefinition
Interface: UserDefinition
Properties
DisplayName?
optionalDisplayName:string
Display name of the logged user
Defined in
IsAdmin?
optionalIsAdmin: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
Permissions?
optionalPermissions: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
Username?
optionalUsername:string
Username of the logged user