Adding Constraint to Get Current User Role

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click in the Declare Constraints compartment to add the constraint.
  2. Provide the following details for the constraint in the Properties window:
    • Name as GetRoleForUser.
    • Description as Gets user role: Admin.
  3. Double click the GetRoleForUser constraint to open up the Expression Editor.
  4. From the Actions Palette, click the Assign Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • Name as Assign
    • Select IS_ADMIN from the Assign drop-down