Example: only allow Query Runner operations
Let's consider this scenario:
- You are a Polytomic Admin.
- You would like to define a role with no ability to perform any operations in Polytomic except for running queries in Query Runner against your data warehouse:

This tutorial will define a custom role and policy to cover this use case. Throughout the steps below, ensure that your role is Admin:
- Go to Roles and create a role with your chosen name (for example: Query-only role):

- Now that we created a role, we will create a custom security policy. Go to Access control and click Create policy:
-
Give your policy a name (for example: Query Runner policy).
-
Map its operations to these corresponding roles:
apply_policy
: Admin
create
: Can leave blank.
delete
: Can leave blank.
edit
: Can leave blank.
export
: Query-only role
modify_policy
: Admin
query
: Query-only role
sync_to
: Can leave blank.
trigger
: Can leave blank.

- Attach this policy to your data warehouse connection (for example, Databricks):

Per the steps above, any user with only the Query-only role will be excluded from performing any operations in Polytomic except for running queries in Query Runner and seeing their results.
Updated 19 days ago