Skip to content
tempkey ← Back to blog

Tempkey Blog

Snowflake Data Access Management for External Analysts: Grant, Verify, and Revoke Warehouse Access

Learn how to scope Snowflake roles for outside analysts, set grants that expire on their own, and keep a record that proves access was removed when the engagement ended.

Configuring snowflake data access management for external analysts requires giving third-party contractors query access to specific datasets without handing over administrative credentials or leaving dormant logins in your account. The most reliable way to achieve this is to isolate the analyst within a dedicated role, grant compute on an independent virtual warehouse, restrict data access through secure views, and set a hard expiration date before their first query runs.

When you hire a freelance data analyst or a specialized consultancy, their work is usually project-based. They might need three weeks to audit conversion funnels, build executive dashboards, or tune an extraction pipeline. If you onboard them by cloning an internal engineer's access or sharing a generic service credential, you create immediate compliance and financial risks. Managing external data analyst access deliberately protects your raw data, controls compute spend, and creates an audit trail your clients and compliance officers will accept.

Start with the decision: privileges an external analyst should avoid holding

Before writing a single SQL statement, identify the three access patterns that routinely compromise warehouse security: shared logins, administrative role grants, and indefinite access durations. A secure deployment isolates each of these failure modes before inviting an outside contractor into the environment.

In Snowflake, identity and authorization divide into distinct primitives: users, roles, and warehouses. A user represents the identity connecting to the platform. A role holds privileges on securable objects like databases, schemas, tables, and warehouses. A warehouse provides the compute resources that execute queries. External analysts need a dedicated role that can query defined views and an assigned warehouse to execute those queries. An external scope excludes ownership of the warehouse, ownership of the underlying database, and membership in account-level administrative roles.

Follow a simple decision rule for every outside engagement: create one named user per analyst, assign one dedicated custom role per contract, attach one dedicated virtual warehouse sized for their query patterns, and set an explicit end date before anyone logs in. If an agency brings two consultants, create two distinct user accounts. Individual attribution in the query history is lost the moment two individuals share a login.

The most frequent failure in fast-moving teams is borrowing credentials. A team lead hands over an internal analytics login or an extraction service account because a sprint starts tomorrow and legal has not completed onboarding. This shortcut makes it impossible to distinguish between employee actions and contractor activity in the access logs. If you want to bypass manual credential sharing altogether, read our guide on granting access without sharing warehouse credentials.

Map Snowflake warehouse permissions to what analysts actually do

Snowflake uses a hierarchical privilege model. To read a single row from a table, an analyst's assigned role must hold privileges across the entire object path: USAGE on the database, USAGE on the schema, and SELECT on the object itself. To run the query, the role also requires USAGE on a virtual warehouse.

According to the Snowflake access control documentation, privileges on securable objects must be granted to roles, which are subsequently granted to users. The minimum privilege ladder for a read-only contractor includes:

  • USAGE on the database containing the data
  • USAGE on the specific schema housing the target tables or views
  • SELECT on specific tables or views needed for the assignment
  • USAGE and OPERATE on an assigned virtual warehouse

Granting blanket SELECT on an entire production schema is rarely appropriate for external engagements. Production schemas often contain customer personal data, unmasked identifiers, financial records, or operational metadata outside the contractor's scope of work. Instead of exposing raw tables, build an analytics presentation schema populated with secure views. As detailed in the Snowflake secure views documentation, a secure view prevents users from viewing the underlying SQL definition and optimizes query plans to stop data exposure through indirect error analysis.

Separating warehouse compute is equally critical. Assign external analysts to their own X-Small or Small virtual warehouse rather than your primary business intelligence or transformation compute. An external analyst running poorly optimized queries with Cartesian joins will not consume credits allocated to internal teams or degrade dashboard performance for executive staff. A dedicated warehouse makes compute costs attributable to the specific contractor engagement, allowing finance to reconcile outside contractor billing against warehouse usage.

Remember that a virtual warehouse provides compute, not storage. Revoking USAGE on a warehouse immediately prevents an analyst from running queries, but it does not delete work, alter data, or revoke permissions on database objects. It simply cuts the compute engine required to read the underlying data.

Review this minimum grant checklist for a read-only external analyst:

  • Create a dedicated virtual warehouse configured to auto-suspend after 60 seconds
  • Set an auto-resume policy on the warehouse so it wakes only when a query executes
  • Grant warehouse USAGE exclusively to the analyst's dedicated role
  • Grant database USAGE on the presentation database
  • Grant schema USAGE on the presentation schema
  • Grant SELECT on defined secure views or masked tables
  • Verify that the analyst role has no CREATE or MODIFY privileges anywhere in the account

Build the role structure before you invite anyone

Role hierarchy design determines whether offboarding takes five seconds or turns into an archaeological dig. In configuring Snowflake role-based access control, custom roles form a tree where privileges inherit upward to parent roles. External roles must sit at the bottom of the hierarchy.

A practical pattern for small and mid-market teams creates an engagement-specific role for each outside contractor. For example, name the role ANALYST_ACME_PROJECT_2026. Assign this role directly to the contractor's named user. Do not inherit privileges from internal roles like ANALYST, DATA_ENGINEER, or TRANSFORMER. If an internal role changes next month to grant access to a new financial schema, your external contractor would inherit those privileges unintentionally.

Do not grant an analyst role to the PUBLIC pseudo-role. Every user in Snowflake automatically inherits PUBLIC. If you grant permissions to PUBLIC, every person and service account in your Snowflake instance gains those privileges. Similarly, avoid assigning external analysts to broad functional roles shared by full-time staff.

Clear role naming conventions clarify your security stance during quarterly access reviews. Structure names so that any team member can immediately recognize the contractor, company, and expiration context from the identifier:

-- Role naming pattern
ROLE_EXT_[CONTRACTOR]_[PURPOSE]_[EXPIRY]

-- Example
ROLE_EXT_DATATECH_FUNNEL_20261130

Decide whether to use managed access schemas for external collaborations. In a standard schema, the owner of an object can grant privileges on that object to other roles. In a managed access schema, object owners lose the ability to grant privileges; only the schema owner or a role with the MANAGE GRANTS global privilege can assign access. For external analyst access, managed access schemas prevent an analyst or intermediate role from re-granting privileges to third parties.

Set an end date before the first query

Time-boxed access must be the default operational standard for external data analyst access, not an afterthought. When offboarding relies on an operator remembering to execute a revoke command weeks later, contractor access routinely persists long after the engagement concludes.

Snowflake provides native controls to enforce time limits at the user level. When provisioning the analyst's user, you can set the DAYS_TO_EXPIRY parameter. When the parameter expires, Snowflake locks the user account, preventing subsequent authentications across the web interface, CLI, and database drivers.

-- Creating a user with native account expiration
CREATE USER jdoe_ext
  LOGIN_NAME = 'jdoe@external-partner.com'
  EMAIL = 'jdoe@external-partner.com'
  DEFAULT_ROLE = ROLE_EXT_DATATECH_FUNNEL_20261130
  DEFAULT_WAREHOUSE = WH_EXT_ANALYST
  DAYS_TO_EXPIRY = 30
  MUST_CHANGE_PASSWORD = TRUE;

While native expiration locks the user, it has operational limitations. A locked user still holds role assignments and remains visible in user registries. In-warehouse scheduled tasks configured to drop roles or revoke grants require ongoing maintenance, elevated permissions (like ACCOUNTADMIN) to schedule, and fail silently if a dependent object changes. Crucially, a SQL script running inside Snowflake leaves no unified record alongside your other contractor offboarding activities across cloud infrastructure and communications tools.

To eliminate forgotten logins across your organization, integrate an automated access manager into your workflow. Tempkey grants contractor access for a set period, revokes it automatically when the grant expires, reads provider state back to confirm the removal on natively enforced providers, and records each step in an exportable audit trail. Tempkey executes revocation and reads provider state back to confirm it. Because revocation depends on third-party provider APIs, Tempkey does not guarantee removal within any specific time and surfaces failed or unenforceable revokes in the audit log.

Verify the revocation instead of assuming it

Executing a revoke command does not complete offboarding. An operator must verify that the user can no longer run queries and that all inherited privileges have cleared.

Read-back verification requires querying Snowflake's metadata tables to confirm that roles and grants are gone. Run these specific queries after completing an offboarding step:

-- 1. Check roles assigned to the user
SHOW GRANTS TO USER jdoe_ext;

-- 2. Confirm the dedicated role holds no remaining warehouse permissions
SHOW GRANTS TO ROLE ROLE_EXT_DATATECH_FUNNEL_20261130;

-- 3. Confirm the user account status is locked or disabled
SHOW USERS LIKE 'jdoe_ext';

Inspect the output of SHOW GRANTS TO USER carefully. If the result set contains any role other than PUBLIC, access remains active. Several real-world failure modes cause access to persist despite running a revocation command:

  • The user was granted a secondary role directly by another administrator during the engagement
  • The user has access to a Snowflake Reader Account or incoming Data Share that bypasses the internal role structure
  • Active sessions remain alive; Snowflake web UI sessions or JDBC connections can persist until the session timeout expires unless actively dropped
  • An external identity provider (IdP) re-provisions or re-enables the user during an automated SCIM synchronization cycle

To drop active queries and sessions immediately upon offboarding, execute an explicit user abort sequence:

-- Terminate active sessions for the user
ALTER USER jdoe_ext SET DISABLED = TRUE;
SELECT SYSTEM$ABORT_USER_QUERIES('jdoe_ext');

On natively enforced providers, Tempkey reads provider state back after revoking to confirm access was actually removed. Implementing automated verification eliminates manual verification queries and catches edge cases where provider APIs accept a call but fail to apply the state change. In addition to transactional offboarding, schedule a monthly audit to inspect all users where the login name contains contractor patterns (such as _ext) to ensure no forgotten accounts remain active.

Keep a record an auditor or client will accept

When clients or compliance auditors ask for evidence of contractor access controls, screenshots of Slack conversations or informal confirmation emails are insufficient. They expect a coherent, time-stamped log tracing the entire lifecycle of the contractor's credentials.

A defensible access record must contain six specific fields:

  1. The precise identity of the contractor and the internal sponsor who approved access
  2. The exact roles, warehouses, and datasets granted
  3. The timestamp when access was provisioned
  4. The planned expiration date agreed upon at onboarding
  5. The timestamp when revocation executed
  6. The verification confirmation showing the account was disabled and roles removed

Snowflake's internal QUERY_HISTORY and ACCESS_HISTORY account usage views log raw SQL activity, but extracting a unified offboarding narrative from them requires writing complex queries across gigabytes of system telemetry. Tempkey keeps an append-only audit trail you can export to CSV or PDF. On the Business plan, Tempkey includes extended audit-history retention to support long-term recordkeeping.

Tempkey gives you an exportable, append-only audit trail to support your own compliance and offboarding records. Tempkey does not hold SOC 2, ISO 27001, HIPAA, or PCI certification. For operational teams without a dedicated security department, pair this exportable log with a structured quarterly access review. Export your active credentials quarterly, reconcile them against open vendor agreements, and store the resulting sign-off sheet in your compliance folder alongside your access logs.

Where Snowflake sits in a wider contractor offboarding process

External analysts rarely work exclusively inside a data warehouse. When bringing in an outside specialist, your onboarding workflow typically touches code repositories, communication channels, cloud buckets, and visualization platforms.

A complete contractor offboarding checklist treats the data warehouse as one component of a multi-system perimeter:

  • Snowflake: disable the user account, terminate active queries, and revoke custom roles
  • AWS IAM: revoke console access, delete programmatic access keys, and detach policy grants
  • Source Control: remove repository access or seat assignments on GitHub or GitLab
  • Collaboration: deactivate Slack guest accounts and remove access from shared Google Drive folders
  • BI and Dashboards: revoke edit and view licenses in Figma, Looker, or Tableau

Managing this checklist manually across multiple administrative consoles leads to omissions. Tempkey natively enforces access on 10 providers: Slack, Google Workspace, Microsoft 365, GitHub, GitLab, Zoom, AWS IAM, Figma, Dropbox, and Asana. Notion and Trello are limited-native (tracked, not fully enforced) and Zapier/Make are best-effort webhook bridges without automated verification. Automatic Slack deactivation uses Slack's SCIM API, which Slack offers on its Business+ and Enterprise plans. On other Slack plans, Tempkey verifies that access was removed rather than removing it.

For small operations teams, centralizing these offboarding triggers ensures that when an analyst's contract concludes, their workspace access, code access, and cloud console privileges expire concurrently. For an in-depth operational walkthrough of cross-platform credential lifecycles, consult our automated access revocation offboarding guide and our review of contractor access management for small businesses.

Common mistakes in snowflake data access management for external analysts

Even teams with clear security policies can fall into recurring operational traps when balancing contractor timelines against access administration. Watch out for these common errors:

Granting ACCOUNTADMIN or SECURITYADMIN to resolve permission errors. When a contractor encounters a database does not exist or operation not authorized error, administrators under deadline pressure sometimes grant an elevated administrative role to keep work moving. This gives the contractor the ability to create users, alter security integrations, and view every row of data across the enterprise. Grant only the missing object privilege instead of an account administration role.

Leaving the user account active while revoking the role. An operator drops the custom role assigned to an analyst but leaves the user record intact. If the user account remains enabled, any future grant to PUBLIC or an inadvertent role grant instantly re-exposes the warehouse. Disable the user record or drop it entirely when the engagement ends.

Sharing an analyst account across multiple contractors. An agency assigns three analysts to your data pipeline. To save time or user management overhead, you create ANALYST_AGENCY and distribute the password. When an unauthorized query alters a critical table or drops a schema, the audit log shows only that the shared account performed the action, eliminating forensic accountability.

Revoking data access while leaving warehouse compute open. An operator revokes USAGE on the database and schema but forgets to revoke USAGE on the virtual warehouse. The analyst can no longer read data, but they can still log in and run compute-intensive operational commands or arbitrary computations, consuming expensive credits on your billing statement.

Skipping the post-revocation verification step. Many teams run an offboarding script and immediately file the ticket as closed. If the script encountered a syntax error, lacked permissions to revoke a specific object, or failed silently on an API call, the contractor retains access unnoticed until an external audit surfaces the violation.

A practical setup sequence you can run this week

Follow this end-to-end implementation sequence to configure, verify, and document external data analyst access for an upcoming project.

Step 1: Provision the user identity

Create a dedicated user account using the analyst's corporate email address. Require an immediate password change and specify an account expiration window.

CREATE USER alex_analyst_ext
  LOGIN_NAME = 'alex@partnerconsulting.com'
  EMAIL = 'alex@partnerconsulting.com'
  DISPLAY_NAME = 'Alex Analyst (Contractor)'
  DAYS_TO_EXPIRY = 30
  MUST_CHANGE_PASSWORD = TRUE;

Step 2: Create an isolated role and dedicated warehouse

Provision a custom role for the engagement alongside an auto-suspending virtual warehouse. This keeps compute costs separated from internal business intelligence tools.

-- Create custom role
CREATE ROLE ROLE_EXT_ANALYTICS_2026;

-- Create dedicated compute
CREATE WAREHOUSE WH_EXT_ANALYTICS
  WITH WAREHOUSE_SIZE = 'XSMALL'
  AUTO_SUSPEND = 60
  AUTO_RESUME = TRUE
  INITIALLY_SUSPENDED = TRUE
  COMMENT = 'Dedicated compute for Alex Analyst project Q4 2026';

-- Grant warehouse usage to the role
GRANT USAGE, OPERATE ON WAREHOUSE WH_EXT_ANALYTICS 
  TO ROLE ROLE_EXT_ANALYTICS_2026;

Step 3: Grant scoped data permissions

Grant access strictly to the curated presentation layer. Use secure views to restrict the rows and columns available to the contractor.

-- Database and schema visibility
GRANT USAGE ON DATABASE PROD_ANALYTICS 
  TO ROLE ROLE_EXT_ANALYTICS_2026;
GRANT USAGE ON SCHEMA PROD_ANALYTICS.EXT_PARTNER_VIEW 
  TO ROLE ROLE_EXT_ANALYTICS_2026;

-- Object permissions on secure views
GRANT SELECT ON VIEW PROD_ANALYTICS.EXT_PARTNER_VIEW.V_DAILY_SIGNUPS_AGG 
  TO ROLE ROLE_EXT_ANALYTICS_2026;
GRANT SELECT ON VIEW PROD_ANALYTICS.EXT_PARTNER_VIEW.V_ANONYMIZED_ORDERS 
  TO ROLE ROLE_EXT_ANALYTICS_2026;

-- Assign role to the contractor user
GRANT ROLE ROLE_EXT_ANALYTICS_2026 TO USER alex_analyst_ext;
ALTER USER alex_analyst_ext SET DEFAULT_ROLE = ROLE_EXT_ANALYTICS_2026;
ALTER USER alex_analyst_ext SET DEFAULT_WAREHOUSE = WH_EXT_ANALYTICS;

Step 4: Record the grant in your access tracking system

Log the provisioning event in your operational records or your access management tool. Document the analyst's identity, role identifier, granted views, expiration date, and approving manager. By defining the expiration parameters on day one, you avoid relying on memory or calendar alerts when the project completes.

For more strategies on isolating external contractors, see our dedicated guide on Snowflake access management for external data analysts.

Step 5: Execute and verify revocation at contract conclusion

When the engagement ends, disable the user account, terminate running queries, revoke custom privileges, and verify state removal through metadata queries.

-- 1. Disable the user and drop active connections
ALTER USER alex_analyst_ext SET DISABLED = TRUE;
SELECT SYSTEM$ABORT_USER_QUERIES('alex_analyst_ext');

-- 2. Strip role grants
REVOKE ROLE ROLE_EXT_ANALYTICS_2026 FROM USER alex_analyst_ext;

-- 3. Drop dedicated resources
DROP WAREHOUSE IF EXISTS WH_EXT_ANALYTICS;
DROP ROLE IF EXISTS ROLE_EXT_ANALYTICS_2026;
DROP USER IF EXISTS alex_analyst_ext;

-- 4. Verify account removal
SHOW USERS LIKE 'alex_analyst_ext';
SHOW ROLES LIKE 'ROLE_EXT_ANALYTICS_2026';

Export the resulting execution logs and update your offboarding records. You now have an auditable, verifiable record proving that access was granted with minimal privileges and revoked promptly upon contract completion.

Frequently asked questions

How can operations users update snowflake data without direct warehouse credentials?

Operations teams can ingest or update data without holding direct warehouse credentials by routing updates through intermediate services such as staged cloud storage (AWS S3 or Google Cloud Storage) or automated data pipeline connectors. By granting write permissions strictly to an external ingestion service or staging bucket, internal users and contractors can push CSV or JSON updates that Snowflake ingests via Snowpipe or automated scheduled copy tasks, keeping warehouse administrative credentials entirely unexposed.

Can I give an external analyst access to Snowflake without sharing a login?

Yes. Snowflake requires individual user accounts for every human connecting to the platform, meaning teams must avoid sharing an existing employee or service account login. Instead, create a distinct, named user for the analyst using their professional email address. Configure passwordless authentication, require multi-factor authentication (MFA), and assign the user strictly to a dedicated, limited custom role that has no administrative privileges.

What is the minimum Snowflake role an outside analyst needs to run queries?

The minimum role is a custom role created specifically for the analyst's engagement that holds USAGE on a designated virtual warehouse, USAGE on the target database, USAGE on the specific schema, and SELECT on the designated tables or views. Outside analysts should not be assigned to system roles like ACCOUNTADMIN, SECURITYADMIN, or SYSADMIN, nor should they receive broad access via the PUBLIC role.

How do I confirm a contractor's Snowflake access was actually revoked?

Run explicit verification queries in Snowflake immediately following offboarding. Execute SHOW GRANTS TO USER [username] to confirm no roles remain attached, run SHOW USERS LIKE '[username]' to verify the account is marked disabled or dropped, and call SELECT SYSTEM$ABORT_USER_QUERIES('[username]') to ensure no active sessions remain running in the background.

Does Tempkey manage Snowflake access directly?

No. Tempkey natively enforces access on 10 providers: Slack, Google Workspace, Microsoft 365, GitHub, GitLab, Zoom, AWS IAM, Figma, Dropbox, and Asana. Notion and Trello are limited-native (tracked, not fully enforced) and Zapier/Make are best-effort webhook bridges without automated verification. Teams use Tempkey alongside their database access workflows to orchestrate and log contractor offboarding across their wider SaaS and infrastructure footprint.

If you are handing Snowflake access to an outside analyst this month, set the end date at the same time you set the grant. Tempkey grants contractor access for a set period, revokes it automatically when the grant expires, and keeps an exportable audit trail of every grant, extension, and revocation. Start on the Free plan with two active grants and see the record it produces.