Skip to main content
There is no UI interface to create a network policy for USERADMIN roles on a reader account. You must create, view, remove network polices via a worksheet.Please check out the official snowflake documentation for more information https://docs.snowflake.com/en/sql-reference/sql/create-network-policy
You can follow the syntax guide located in the official Snowflake documentation

Creating a Network Policy

Step 1: Create a new worksheet and lets view what existing Network Policies we have
Results tab selected showing SHOW NETWORK POLICIES query output with columns for created_on, name, comment, and IP list entries, displaying "Query produced no results"

In this example there are no Network Policies created

Step 2: Lets start by creating a Network Policy with an ALLOWED_IP_LIST
Step 3: Now lets view your newly created Network Policy Run the below command to view your Network Policies and which IP addresses are currently assigned
DESC NETWORK POLICY results table showing ALLOWED_IP_LIST with values 54.244.77.231,111.222.1.000, confirming the policy was created successfully.
Lets run DESC on the Network Policy name to verify our changes

Activating Your Network Policy

Once your Network Policy is created reach out to Elation Support Portal to setup additional permissions to allow you to activate your Network Policy When Elation Health has completed the steps required to activate your Network Policy run the below command to activate your Network Policy
Verifying your Network Policy is active To view your newly created Network Policy run the below command
SHOW PARAMETERS result showing NETWORK_POLICY key with value MYPOLICY2 active at ACCOUNT level, confirming the network policy was successfully activated.

You can verify the Network Policy is active by a populated field in columns value and level

Or reach out to Elation Support Portal for a representative to verify your Network Policy has been activated.

Switching between active Network Policies

You can only have one active network policy at a time
Lets run DESC on the Network Policy name to verify our changes
DESC NETWORK POLICY results showing ALLOWED_IP_LIST with values 54.244.77.231,111.222.1.000 and BLOCKED_IP_LIST with value 22.222.11.111, confirming the ALTER command succeeded.

Updating an Existing Network Policy

If you need to add additional IP addresses, remove IP addresses, or add in a new parameter you can use the ALTER statement. For example: Lets use the ALTER statement to add a list of blocked IP addresses to our newly created Network Policy
Lets run DESC on the Network Policy name to verify our changes
DESC NETWORK POLICY results showing ALLOWED_IP_LIST with values 54.244.77.231,111.222.1.000 and BLOCKED_IP_LIST with value 22.222.11.111, confirming the ALTER command succeeded.

Removing a Network Policy

Run the below command to remove a Network Policy
You can then run the bellow command to verify if it has been removed