Manage User Roles and Privileges > Managing data access rules > Data access rules example
  

Data access rules example

The data access rules can include protected business entity, associated relationships, and business entities related to protected business entity through relationships and business entity record fields.
Effective in the February 2023 release, the option to create conditions for the following assets and attributes is available for preview:
Preview functionality is supported for evaluation purposes but is unwarranted and is not supported in production environments or any environment that you plan to push to production. Informatica intends to include the preview functionality in an upcoming release for production use, but might choose not to in accordance with changing market or technical circumstances. For more information, contact Informatica Global Customer Support.
For example, consider a scenario with the following requirements :
Provide access to records of employees from United States and from California or Florida and they are either employees of Informatica or contractors of Informatica.
To achieve the preceding requirement, you can create multiple data access rules which act as rules with both the AND and OR operators. Create multiple data access rules according to your requirement and assign them to multiple user roles. If you assign the user roles to a user in Administrator, the data access rules act as rules with the AND and OR operators and the user gets access to the records in your business application according to the requirement .
Before you create a set of data access rules that act as rules with the AND and OR operators, familiarize the following concepts:

Creating multiple data access rules

You can create multiple data access rules that act as rules with the AND and OR operator to get the results of a complex data access rule.
Consider the following sample rule for a Person business entity:
Employee Country=US (City Name contains California, Florida) AND (Relationship=Employee AND Organization Name=Informatica) OR (Relationship Name=Contractor AND Organization Name=Informatica)
To achieve the results of the preceding rule, you can create multiple data access rules that act as rules with the AND and OR operators.
The rule contains the following attributes, operators, conditions, values, and associated business entities:
Attribute
Operator/Condition
Value
Associated business entity
Type of business entity
Country
Equals to
United States
Person
Predefined business entity, which is the protected asset in your data access rule.
City Name
In
California, Florida
Person
Predefined business entity, which is the protected asset in your data access rule.
Organization Name
Equals to
Informatica
Organization
Predefined business entity that is related to the protected Person business entity.
Relationship 1
Exists
Employee
Organization
Predefined business entity that is related to the protected Person business entity.
Relationship 2
Exists
Contractor
Organization
Predefined business entity that is related to the protected Person business entity.
    1 Create multiple data access rules based on the AND operators. Separate the applicable attributes for each rule. The following table lists the separated attributes:
    Attributes
    Rule 1
    Rule 2
    Country
    Applicable
    Applicable
    City
    Applicable
    Applicable
    Organization Name
    Applicable
    Applicable
    Relationship 1
    Applicable
    Not Applicable
    Relationship 2
    Not Applicable
    Applicable
    All the attributes in the sample rule is common except the relationships. The two relationships in the sample rule should act as rules that use OR operators. Hence, you need to create two individual data access rules using the AND operator.
    2 After you separate the attributes, create individual data access rules with the AND operator in the following format:
    Note: To create a data access rule with the AND operator, define conditional statements for each required attribute within the rule.
    3 Assign each rule to individual custom user role. Assign the custom user roles to a single user in Administrator. The set of rules act as data access rules that uses both the AND and OR operators. The following table lists the assignment of data access rules to custom user roles and user:
    Data access rule
    Custom user role assigned in the data access rule
    User assigned in Administrator
    Country=US (City in California, Florida) AND (Relationship Employee Exists and Organization Name=Informatica)
    Custom user role 1
    User 1
    Country=US (City in California, Florida) AND (Relationship Contractor Exists and Organization Name=Informatica)
    Custom user role 2
    User 1
    The following image shows a sample rule configured on the Security pageAfter you save the data access rule, you can access the rule from the Data Access Rules tab on the Security page.: