Add Users to Visitor Roles with Expressions

You can define a Visitor Entitlements role to determine its user members dynamically by setting conditions under which users are members of that role. You define those conditions with expressions such as user profiles properties and dates/times. For example, you can define a role with the following type of expression: "If a logged-in user has the 'state' property set to 'Colorado' and the time is between 9 a.m. and 5 p.m. MST, the user is a role member."

NOTE: If you decide to define roles with expressions whose evaluation changes within the course of processing a request you may need to adjust your cache settings. See the Performance Tuning Guide for more details.

To Add Users to Visitor Roles with Expressions:

  1. In the Visitor Entitlements tool, select a portal Web application in the "Select Web Application" field. (Each portal Web application contains its own Visitor Entitlement roles.)
  2. In the Visitor Entitlements resource tree, create a new role or select the role to which you want to add users.
  3. Select the Edit Role Expression tab.
  4. In the drop-down menu, designate whether All of the conditions or Any of the conditions should be met to make a user a role member.
  5. Select the check box next to any conditions you want to set.
    When you select a condition, it expands to let you configure it.
  6. Click Save Changes to apply your edits.
  7. Confirm that the expressions have been successfully added to the role by selecting the Role Properties tab.
  8. You can further define a role by adding users and groups to the role.

Related Topics: