User Object

The user object contains properties and nested objects that describe the current user account, role, and employee information (if the current user has an email that matches a record in the employee table).

Expression Description
${user.name} User name
${user.role} User role name
${user.email} User email address
${user.locale} User locale name
${user.employee.id} Employee ID
${user.employee.number} Employee number
${user.employee.phone} Employee phone
${user.employee.imageFile} Employee image file name
${user.employee.honorific} Employee honorific
${user.employee.space.roomId} Employee room ID
${user.employee.space.floorId} Employee floor ID
${user.employee.space.buildingId} Employee building ID
${user.employee.space.siteId} Employee site ID
${user.employee.space.countryId} Employee country ID
${user.employee.organization.divisionId} Employee division ID
${user.employee.organization.departmentId} Employee department ID
${user.isMemberOfGroup('FIM')} Returns true if the user belongs to a group SQL

${user.name}

Evaluates to the login name of the current user.

${user.legalId}

Identifier for this customer's organization (the legal entity that is their employer) that is entered in the Users account record (their afm_users.legal_id value).

${user.option1}

${user.option2}

${user.option3}

${user.option4}

Evaluates to the value of the Option1, Option2, Option3, or Option4 field of the Archibus Users table. These fields are largely replaced by VPA Groups and mapping tables – since the lists of buildings, equipment, and other items are more easily managed in centralized lists that multiple users can share. These fields are still useful for adding any hard partition restrictions you might need in addition to the Legal ID restriction.

${user.role}

Evaluates to the Archibus Users "primary" or first role value (afm_users.role_id). This value is used in application logic such as help desk requests, work request routing, reservations approvals, which currently use this macro or hard-code references to the afm_roleprocs table.