Using the Replace Table Rule Action to Implement Row-Level Security

Using the Replace Table Rule Action to Implement Row-Level Security

Step 4. Create the Define Symbol Rule

Step 4. Create the Define Symbol Rule

Create a Define Symbol rule that defines a symbol for the Sales department identification number.
  1. In the Rule Editor, select the security rule folder that you created and click
    Action
    Append Rule
    .
    The
    Append Rule
    window appears.
  2. Configure the following parameters for the Define Symbol rule:
    Rule Name
    Enter the name of the rule. In this example, the rule name is DefineSymbol.
    Description
    Enter an optional description of the rule.
    Matcher
    Select the Any matcher. The Rule Engine applies the rule to all incoming requests.
    Action
    Select the Define Symbol action. In the Symbol Definition box, define the following parameters:
    • Symbol Name
      . The name of the symbol. In this example, the symbol name is DepartmentID.
    • Symbol Value
      . The value of the symbol. In this example, the symbol value is 100, which is the Sales department identification number in the DEPARTMENT_ID column of the EMPLOYEES table.
    • Keep per Session
      . Enter Yes. The symbol becomes a global symbol for the session and exists until the user disconnects from the database.
    Processing Action
    Select the Continue processing action. The Rule Engine continues to the next rule in the tree.
    Log When Rule is Applied
    To include information in the log files about when the Rule Engine applies the rule, select the Log When Rule is Applied parameter.
    The following image shows the rule parameters:
    The masking rule uses the Any matcher, the Define Symbol rule action, and the Continue processing action.
  3. Click
    OK
    to close the window and add the rule to the rule tree.
  4. Click
    File
    Update Rules
    to save the rule.

0 COMMENTS

We’d like to hear from you!