A successful sign-in is the first checkpoint
Maple Market has analysts who read sales reports, engineers who load orders, and developers who test changes. One morning analyst Ana signs in but cannot read the orders report. Engineer Ravi sees a different problem: the scheduled job cannot connect at all. Those failures need different evidence.
Start with three questions. Can the connection reach Snowflake from an approved network? Can the person or workload prove its identity? Once a session exists, does it have permission for the exact operation and objects? These are the network, authentication and authorization questions. They describe how you diagnose the problem rather than the internal order of every check.
A user is an identity inside Snowflake. A role bundles privileges that people or workloads need for a job. A privilege is permission to do something such as SELECT. A securable object is a resource whose access Snowflake controls, such as a database, schema, table or warehouse. Role-Based Access Control, or RBAC, lets a team assign the bundle to many users and review it in one place.
- Analyst or workloadConnect to Approved connection path
- Approved connection pathProve identity to Authenticated user
- Authenticated userRequest a query to Session roles and object privileges
Follow the path from warehouse to table
Ana wants to run a normal query on M17_ACCESS_LAB.REPORTING.ORDERS using M17_LAB_WH. For a minimal read role, give USAGE on the warehouse to run the query, USAGE on the database and schema to reach the table, and SELECT on the table to read its rows. Other qualifying rights can satisfy some checks. The fixture names each dependency so you can identify which permission is missing.
Suppose Ana’s role already has table SELECT and database USAGE but lacks schema USAGE. Signing in succeeds and the grant exists. Snowflake can still report that the object does not exist or is not authorized. Confirm the exact name and active role, then check the containing schema. A larger role can hide the broken grant chain.
| Object | Minimal privilege in this example | Why |
|---|---|---|
| M17_LAB_WH | USAGE | Run the warehouse-backed query |
| M17_ACCESS_LAB | USAGE | Reach the database |
| REPORTING | USAGE | Reach the schema |
| ORDERS | SELECT | Read rows from the table |
Test one layer at a time
Use an approved practice account and existing strongly authenticated read-only identity. If the client never reaches Snowflake, record the account hostname, source network and time. Compare name resolution and reachability with a known-good client. A successful connection to port 443 proves reachability only.
After connection, check the sign-in event or the identity provider’s log. Then run the session query below. The functions return identifiers for the current session without reading business data. For Maple Market, expect the approved account and analyst role. A blank warehouse means none is selected.
Run the existing permission fixture below for the data-layer check. Both hypothetical sessions have table SELECT. Only the session with USAGE on every parent and warehouse can read. The fixture models the grant path and does not connect to an identity provider or evaluate real account grants.
Capture the connected session
Run this as the existing pilot user. Record these fields alongside the timestamp and error. If the client never starts a session, gather the client and sign-in evidence first.
SELECT CURRENT_ACCOUNT_NAME() AS account_name,
CURRENT_USER() AS signed_in_user,
CURRENT_ROLE() AS primary_role,
CURRENT_SECONDARY_ROLES() AS secondary_roles,
CURRENT_WAREHOUSE() AS warehouse;Choose the right control in production
A private route controls how traffic reaches Snowflake. Strong sign-in controls who can start a session. Role grants decide which objects a statement may use. If readers may see the report but only their own region, a row access policy can restrict the rows. A masking policy controls what value is returned for a sensitive column. Confirm edition and policy privileges before using those features.
For an overnight job that authenticates successfully but cannot insert, start with the job’s actual role and target. Inspect warehouse and parent access, then INSERT. A second factor or broader network rule cannot supply that privilege.
Explain the design in an interview
Name the rule, then explain how you would prove it.
Ana can sign in. Why might the report still fail?
I would check the exact report object and the role her client activated. A login proves identity. The query still needs access to its warehouse, parents and the object.
How do you prove a network policy works?
I would test fresh sign-ins from the designated allowed and denied origins using the same approved identity. I would also test the intended SQL action separately.
Words used in this lesson
- RBAC
- Manage permission by granting roles to identities and privileges to roles.
- Authentication
- Verify a person or workload identity.
- Authorization
- Decide whether the active session can perform an operation.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Snowflake Security: Network Access, Authentication and Authorization
Name the failed checkpoint
Connection, sign-in and an SQL statement produce different evidence.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Name the failed checkpoint
Connection, sign-in and an SQL statement produce different evidence.
Network → Identity → Operation
- Look at the containing objects
The fictional analyst has SELECT. The schema still needs USAGE.
Database USAGE → Schema USAGE missing → Table SELECT
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Find what is missing from the read path
WITH permissions AS (
SELECT column1 AS scenario, column2 AS warehouse_usage,
column3 AS database_usage, column4 AS schema_usage,
column5 AS table_select
FROM VALUES ('A missing schema usage', TRUE, TRUE, FALSE, TRUE),
('B complete read path', TRUE, TRUE, TRUE, TRUE)
)
SELECT scenario,
CASE
WHEN NOT warehouse_usage THEN 'Missing warehouse USAGE'
WHEN NOT database_usage THEN 'Missing database USAGE'
WHEN NOT schema_usage THEN 'Missing schema USAGE'
WHEN NOT table_select THEN 'Missing table SELECT'
ELSE 'Read allowed'
END AS modeled_result
FROM permissions
ORDER BY scenario;What to expect and why
Each input row describes effective privileges for a fictional session. CASE finds the first missing fixture dependency. This exercise models a minimal grant path. It does not ask Snowflake to check the privileges of a real user.
| SCENARIO | MODELED_RESULT |
|---|---|
| A missing schema usage | Missing schema USAGE |
| B complete read path | Read allowed |
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Change the first fixture to have schema USAGE and no warehouse USAGE. Predict the result.
Compare your reasoning
The first row now shows Missing warehouse USAGE. The role needs access to the compute used by this query.
Connect this lesson to the learning path
Official sources and curriculum
Module 17 · See module scope
By Rohit Ray · Independent educational lesson · Explore this visual lab