Prerequisites
Before starting this task, ensure you have the following: Required roles:nx1_migration_admin or nx1_migration_ops.
Create a policy
Perform these steps to create a policy.- Log in to NexusOne.
- On the top navigation bar, hover your mouse over Govern and then select Data Access.
- Click the All policies tab.
- Click New Policy.
-
Describe the policy:
- Policy name: Optional. Enter a name. If you leave it empty, NexusOne names the policy from its resources.
- Policy type: Select Access, Masking, or Row Filter.
- Description: Optional. Enter who or what the policy governs, and why.
-
In the Resources section, add each resource the policy covers:
- Select a resource in the Resource list.
- Enter one or more values, separated by commas.
- Optional: Select Excludes to apply the policy to everything except those values, or Recursive to include everything under them. A resource shows these options only when Ranger supports them.
- Click Add.
tableneeds itscatalogandschema. -
Set who the policy applies to. The section depends on the policy type:
-
Access: In the Allow section, do the following:
- In the Access types field, select the access types.
- In the Groups and Users fields, select who gets the access.
- Optional: Select Delegate admin to let them grant the access to others.
- Optional: Click Add allow item to add another row.
- Optional: To deny access or add exceptions, expand Deny items, Allow exceptions, or Deny exceptions.
- Masking: In the Masking section, select the Mask type, and then select the access types, groups, and users. For a Custom mask type, enter the Custom mask expression. Optionally, enter a Mask condition so the mask applies only when the condition is true. Click Add mask rule to add another rule.
-
Row Filter: In the Row filters section, enter a Filter expression, and then select the access types,
groups, and users. The expression is a SQL
WHEREfragment, for exampleregion = 'EU'. Click Add filter rule to add another rule.
-
Access: In the Allow section, do the following:
-
Optional: In the Options section, set the following:
- Enabled: When off, Ranger ignores the policy.
- Audit logging: Writes an audit record every time Ranger evaluates the policy.
- Deny all else: Denies anything the policy doesn’t explicitly allow.
- Priority: Select Normal or Override.
- Labels: Enter a label and press Enter to add it.
- Click Create policy.

