Users and Roles

openBuild adds a few fields to the default User data type.

User datatype

These are:

  • avatar - by default pre-built pages and elements use this field to display User avatar

  • firstName - user first name

  • lastName - user last name

  • fullName - useful in workflows. Remember to update the field whenever firstName or lastName changes. You can either do this manually or create a database trigger

  • phone - user phone number

  • userType - it's a field linked to the User Type option set.

Read about the rules around creating syntax for fields and elements in this section.

By default template comes with two option's available

User Types are used to create security rules around users accessing data and pages. For example only admin users (i.e. User's with User type of Admin) should have access to the admin page or see certain data.

In the framework, you will also find that we use the User type option set in Security Reusable.

Last updated