# Users and Roles

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

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FBHSrbpcHgKDpcI8oanfQ%2FScreenshot%202022-10-04%20at%2014.20.00.png?alt=media&#x26;token=e66fd86f-aaf2-48f8-a7d2-bea95aa27359" alt=""><figcaption><p>User datatype</p></figcaption></figure>

These are:&#x20;

* 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](https://docs.openbuild.io/framework-elements/option-sets) option set.

Read about the rules around creating syntax for fields and elements [in this section](https://docs.openbuild.io/working-with-the-framework/best-practices/syntax).&#x20;

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F1ZMre8tgcaHz0G2njTLv%2FScreenshot%202022-10-04%20at%2014.26.56.png?alt=media&#x26;token=cedec067-33cf-4e80-bb3a-98db66ded7ee" alt=""><figcaption><p>By default template comes with two option's available </p></figcaption></figure>

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.&#x20;

{% hint style="warning" %}
Remember that if you do not see the data on the page it does not mean it's not accessible to 3rd parties in some other way. Read more about security [in this section](https://docs.openbuild.io/working-with-the-framework/security-and-privacy).
{% endhint %}

In the framework, you will also find that we use the User type option set in [Security Reusable](https://docs.openbuild.io/framework-elements/security-redirect).
