Access Policies
Fine-grained control over Data Pool access with column and row-level rules
Access Policies determine which rows and columns of a Data Pool are accessible. They can have multiple rules, including row-level rules with static or dynamic values.
Creating and assigning Access Policies
Follow these steps to create an Access Policy via the Console:
- Go to the desired Data Pool.
- Open the “Access Policies” tab.
- Click “Add new policy”.
- Define column and row access controls.
- Assign Applications to the Policy.
- Name and describe the policy.
- Review and click “Create”.
- Enable Access Control on the Data Pool.
Column-level rules
Column-level rules define which specific columns of a Data Pool are accessible.
Column-level rule configuration in the Console
To grant access to all columns, use the wildcard "*"
:
Configuring access to all columns
Row-level rules
Row-level rules determine which specific rows of a Data Pool are accessible.
Row-level rule configuration
Dynamic values row-level rules
For more flexible policies, you can use dynamic values from the JWT token in row-level rules:
Dynamic row-level rule configuration
For a deep dive into dynamic values and building multi-tenant applications, refer to our Multi-tenant JWT Tokens guide.
Assigning Access Policies to Applications
Access Policies are assigned to Applications to enforce data access controls.
Access Policy Relationships
A Data Pool can have multiple Policies, each assigned to multiple Applications. An Application can have at most one Policy per Data Pool.
Key points to remember:
- A Data Pool can have multiple Policies
- Each Policy can be assigned to multiple Applications
- An Application can have at most one Policy per Data Pool
Access Policies and Metrics
Metrics automatically inherit Access Policies from their parent Data Pool. An Application can only query a Metric if its Access Policy permits access to all columns used in that Metric’s definition.
Was this page helpful?