You are here: Security > Attribute-based access control > Masking property visibility for users

Masking property visibility for users

You can restrict access to values of one or more properties by using a property-level access control policy. By using various masking options in the access control policy, you can display partial information about a value to users who are not allowed to see the full value.

Property-level policies can be enforced only on optimized properties. Also, the policies cannot be enforced in some Pega Platform features. For example, polices cannot be enforced in features that retrieve data for potential sharing across multiple users whose credentials are not available at the time of retrieval, and whose credentials might vary and might change following retrieval, such as node-scoped and cluster-scoped data pages and scheduled reports. These same limitations also apply to row-level policies.

  1. Click Records > Security > Access Control Policy.
  2. Click +Create.
  3. In the Label field, enter the policy name.
  4. In the Action list, select PropertyRead.
  5. In the Context section in the Apply to field, enter a class.
  6. In the Add to ruleset field, select a ruleset.
  7. Click Create and open.
  8. On the Definition tab, select the Disallow creation of a policy with the same name at a descendant class check box to prevent overriding the policy in a descendant class.
  9. In the Permit access if field, enter the condition rule name under which the access is permitted.
  10. Click Add property.
  11. In the Property field, select the property to mask.

    You can mask DateTime, Integer, and Text property types.

  12. In the Restriction Method field, select one of the following masking options for the property type.
  13. Click the Gear icon.
  14. In the Masking and Formatting Options form fill out the required fields.

    When the value for a restricted property is NULL for a case, the value looks as though it is not set.

  15. Click Save.