Create, edit or delete user attribute
User attributes are additional properties of a user. These attributes can be used in consultations with logic.
The attributes provided automatically from the Enterprise Web Player are:
USER_USERNAME - This property contains the username of the user logged in the MEWP.
USER_EMAIL - This property contains the email of the user logged in the MEWP.
USER_ROLE - This property contains the role of the user logged in the MEWP.
Extra attributes can be added from the Application Manager (see create, edit or delete user attributes) and the way of using them is:
USERATTRIBUTE_NAMEOFATTRIBUTE
For instance: USERATTRIBUTE_COMPANY will contain the value of the field "Company" associated with the user logged in the MEWP.
Create user attribute
To create a user attribute, perform the following steps:
- Click on the new button. A popup window will appear.
- Fill in the name of the user attribute.
- Fill in the description of the user attribute.
- Select the mandatory option if desired. (See below for more information)
- Select force unique value option if desired. (See below for more information)
- Select Submit button. (See below for more information)
You have now created a user attribute.
Mandatory
You can choose the option to make a user attribute mandatory for every user. This means that this attribute needs to be filled in when a new user is being created.
Force unique value
You can choose the option to make a user attribute has a unique value for every user. This means that two users cannot have the same value for the user attribute.
Edit user attribute
To edit a user attribute, click on the button. A popup will appear where you can change the settings. After changing the data, click submit to save the changes.
When a mandatory user attribute is created, existing users which do not have the values for that attribute yet need to be filled in. Else the user cannot be edited.
Delete user attribute
To delete a user attribute, select the icon from the general list to delete a user attribute. After confirmation, the user attribute will be deleted.