Skip to content

Class

User details.

Inheritance: WorkflowUserDetailsWorkflowUser

Constructors

constructor

inherited
Class Constructor
WorkflowUserDetails(): WorkflowUserDetails
Returns 
WorkflowUserDetails

Properties

Hide inherited properties
PropertyTypeNotes
email
inherited
string

Email.

firstName
inherited
string

First name.

fullName
inherited
string

Full name

groupsstring[]

Groups the user is a member of.

groupsOwnedstring[]

Groups the user is the owner of.

isAssignable
inherited
boolean

Indicates whether the current user has privileges to assign jobs to this user.

lastName
inherited
string

Last name.

thumbnail
inherited
string

User's avatar.

username
inherited
string

Username.

workflowPrivilegesstring[]

Workflow Manager privileges for the user.

workflowRolesstring[]

Workflow Manager roles associated with the user.

email

optionalinheritedinherited
Class Property

firstName

optionalinheritedinherited
Class Property

fullName

inheritedinherited
Class Property

groups

Class Property

groupsOwned

optional
Class Property

isAssignable

optionalinheritedinherited
Class Property

lastName

optionalinheritedinherited
Class Property

thumbnail

optionalinheritedinherited
Class Property

username

inheritedinherited
Class Property

workflowPrivileges

optional
Class Property

workflowRoles

optional
Class Property

Methods

MethodReturnsNotes
hasPrivilege(privilege)boolean

Checks if the user has the specified privilege.

isAdministrator()boolean

Checks if the user is a Workflow Manager administrator.

hasPrivilege

Class Method
hasPrivilege(privilegeWorkflowPrivilegeType): boolean

Checks if the user has the specified privilege.

Use dark colors for code blocksCopy
1
2
3
const canCreateJobs = userDetails.hasPrivilege(WorkflowPrivilegeType.JobCreate);
const canAddUpdateAttachments = userDetails.hasPrivilege(WorkflowPrivilegeType.JobUpdateAttachments);
const canUpdateHolds = userDetails.hasPrivilege(WorkflowPrivilegeType.JobUpdateHolds);
Parameters
ParameterTypeNotes
privilegeWorkflowPrivilegeType

The privilege to check.

Returns 
boolean

Returns whether the use has the specified privilege.

isAdministrator

Class Method
isAdministrator(): boolean

Checks if the user is a Workflow Manager administrator.

A user is a Workflow Manager administrator if they have either of the AdminAdvanced or AdminBasic privileges.

Returns 
boolean

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.