
Key Features
- Role-based: Policies are bound to roles, not individual users
- Hierarchical: Support for project-scoped resources (e.g.,
project:<id>:dataset:*) - Explicit deny: Deny statements override allow statements
- Extra constraints: Resource-specific restrictions (row-level security, column filtering, path prefixes)
- Wildcard support: Use
*for flexible matching across resources and actions - Branch-aware: Optional branch specification for version control

Policy Structure
Each policy consists of one or more statements that define access rules:Fields
Resource Patterns
Resources follow a hierarchical pattern that supports various levels of specificity:Flat Resources
Hierarchical Resources
Hierarchical patterns enable project-scoped permissions:Supported Resource Types
dataset- Data tables in the lakehouseproject- Project containersview- Virtual views over datasetsschedule- Automated execution schedulesextract- Data ingestion jobscompute- Compute resourcesapi_key- API authentication keysuser- User accountsrole- User rolesnotebook- Interactive analysis notebookspipeline- Data transformation pipelinesendpoint- REST API endpointsintelligent_app- Dashboard applicationsvariable- Environment variablesagent- AI agentsaction- Executable actionsorganisation- Organisation-level administrationorion- Orion logssource- Data source connectionsnotification- Notification channels and settingstag- Resource tags
Actions
Actions follow the<resource>:<action> format and define what operations can be performed:
Action Patterns
dataset:read- Read access to datasetsdataset:write- Modify datasetsdataset:delete- Delete datasetsdataset:execute- Execute operations on datasetsdataset:manage- Full management accessdataset:create- Create new datasetsdataset:*- All dataset actions*:read- Read access to all resources*:*- All actions on all resources
Common Actions
Exceptional Actions
Some resources support custom actions beyond the standard CRUD operations:project:read_repository- Read access to project code repositoryproject:write_repository- Write access to project code repository (push commits, merge pull requests)project:pr_create- Permission to open a pull request targeting a branchproject:deploy- Permission to deploy a projectendpoint:invoke- Permission to call an API endpointagent:ask- Permission to ask (query) an AI agent
Manage Permissions and Settings Access
Some parts of the application — mainly the Settings area — are gated by themanage action rather than by read. A user who holds <resource>:manage sees that resource’s menu in Settings and can view its entries.
manage grants visibility only. It does not imply creating, editing, or deleting — grant <resource>:create, <resource>:write, or <resource>:delete alongside it for those operations.
Previously these areas were visible only to users with organisation:manage. Now each resource can be delegated independently, so you can grant access to a single Settings menu without handing over organisation-wide administration.
Resources that support manage
Example: access to API keys and sources
This policy reveals the API Keys and Source menus in Settings without granting any other organisation administration:api_key:manage is enough to create and revoke their own keys. Sources are shared organisation resources, so this policy does not let them create or delete a source.
Example: adding source create permission
To let the same role also create sources, addsource:create on the resource type:
source:delete and source:write on the instances (for example source:*).
organisation:manage still implies access to every Settings menu. Use the per-resource manage actions when you want to delegate one area only.Row-Level and Column-Level Security
Datazone supports fine-grained data access control through row-level and column-level restrictions using theextra_constraints field. This enables you to restrict what data users can see within a dataset or view, beyond just granting or denying access to the entire resource.
Extra Constraints Structure
For datasets and views, you can specify columnar constraints:Fields
Row-Level Restrictions
Row-level restrictions apply SQL conditions to filter which rows a user can access:Column-Level Restrictions
Column-level restrictions specify which columns users can access (allowlist):Combined Restrictions
You can use both row and column restrictions together:Policy Examples
Read-Only Access
Grant read access to all resources:Dataset Admin
Full control over all datasets:Project Admin
Full control over a specific project and all its resources:- Manage the project itself (
project:*) - Create and manage all child resources (datasets, notebooks, pipelines, etc.)
Restricted Access with Deny
Allow read access to all datasets except one specific dataset:Project-Scoped Dataset Access
Grant access to datasets within a specific project only:Branch Protection
Repository permissions can be scoped to a branch with thebranch field. Combined with the separation between project:write_repository (pushing commits and merging pull requests) and project:pr_create (opening a pull request), this lets you protect a branch such as main while keeping the rest of the project fully editable.
The result is a familiar protected-branch workflow: contributors work on feature branches and open pull requests into
main, but nobody with this policy can push or merge into main directly. Grant merge rights to a separate reviewer role that is not denied project:write_repository on main.
project:pr_create is checked against the base branch of the pull request — the branch being merged into. To block pull requests into main entirely, add project:pr_create to the deny statement’s actions.Data Analyst Role
Typical permissions for a data analyst:Built-in Policies
Datazone provides several built-in policies for common use cases:Admin Policy
Full access to all resources:Best Practices
Policy Design
- Start restrictive: Begin with minimal permissions and add as needed
- Use hierarchical patterns: Organize permissions by project for better management
- Leverage deny sparingly: Use deny for exceptions to broad allow rules
- Document policies: Add clear descriptions to explain policy intent
Role Assignment
- Bind to roles only: Policies are assigned to roles, not individual users
- Create role hierarchies: Use multiple roles for different permission levels (Viewer, Editor, Admin)
- Audit regularly: Review policy assignments periodically
Performance
- Cache aware: Policies are cached; changes may take a few seconds to propagate
- Granular resources: Use specific resource IDs when possible to reduce evaluation complexity
- Minimize deny statements: They require checking all policies
Security
- Principle of least privilege: Grant only necessary permissions
- Explicit denies: Use deny statements to override broad allows for sensitive resources
- Extra constraints: Apply row-level and column-level security for sensitive data
- Path restrictions: Use
path_prefixconstraints to sandbox project access
Validation Rules
Policies are validated automatically to ensure correctness:Action Format
- Must follow
<resource>:<action>pattern - Both parts must be lowercase with underscores
- Wildcards allowed:
*:*,dataset:*,*:read
dataset:readproject:**:*
dataset(missing action)Dataset:Read(uppercase)read(missing resource)
Resource Pattern
- Must be valid resource type or wildcard
- ObjectIds must be valid MongoDB ObjectIds
- Hierarchical patterns must follow
parent:<id>:childformat
dataset:*project:507f1f77bcf86cd799439011project:507f1f77bcf86cd799439011:dataset:*
dataset:invalid-idproject::dataset:*
Action-Resource Matching
Actions must match the resource type they’re applied to:*:*) can be used on any resource.
Troubleshooting
Permission Denied Errors
If you encounter permission denied errors:- Check user roles: Verify the user has the appropriate role assigned
- Review policy statements: Ensure the policy includes the required action and resource
- Look for deny statements: Check if an explicit deny is overriding an allow
- Verify resource IDs: Ensure you’re using the correct resource identifier
- Check cache: Wait a few seconds for policy changes to propagate
Hierarchical Permissions Not Working
If project-scoped permissions aren’t working:- Verify pattern format: Use
project:<id>:*notproject:*:<id> - Check parent context: Ensure the resource creation includes project reference
- Review cache: Hierarchical relationships are cached; wait 5 minutes or invalidate cache
- Validate ObjectIds: All IDs must be valid MongoDB ObjectIds
Performance Issues
If policy evaluation is slow:- Reduce policy complexity: Simplify nested hierarchies
- Use specific resources: Prefer
dataset:<id>over broad wildcards when possible - Monitor cache health: Ensure Redis is functioning properly
- Check database queries: Hierarchical policies should use cache, not database
Related Resources
Roles
Learn about role management and user assignment
Authentication
Understand authentication and token management
API Keys
Generate and manage API keys for programmatic access
Projects
Organize resources within projects