Module 19 · Lesson 4 of 9Detailed study · about 35 min

Snowflake Reader Accounts: setup, access and provider billing

Give a partner who lacks a Snowflake account a controlled query environment, then verify its role and warehouse charges.

Before you beginReview the provider and consumer model

Decide who should operate and pay for the account

A regular consumer already operates its own Snowflake account. A reader account lets a provider give an approved partner a managed place to query. The reader can consume shares only from the provider that created it. It is created in the provider’s region and uses the same edition. The provider handles support, identity lifecycle and the credit charges incurred by the reader.

Reader accounts cannot upload data, use normal data modification commands such as INSERT, or refresh Dynamic Tables. They can query and use certain derived objects where supported. Read access still exposes approved results. Snowflake documents some unload paths, so do not promise that results cannot be retained or exported.

Reader and standard consumer account responsibilities
DecisionReader accountStandard consumer account
Account management and supportProvider provisions the account and handles supportConsumer manages its account and support agreement
Cost of query computeProvider pays for the reader warehouseConsumer pays for its local warehouse
Source of sharesOnly the provider that created the accountEligible shares from different providers
Local data workloadsLimited. Uploads and Dynamic Table refreshes are unavailable.The imported data is read-only. Local workloads depend on the consumer account and privileges.
Reader account billing and operations The reader user queries the provider’s shared view. Warehouse usage is billed back to the provider.
  1. Maple MarketProvision and invite account to Managed reader account
  2. Managed reader accountAssign a read role and monitored warehouse to Partner analyst
  3. Managed reader accountAttribute compute and support to Maple Market
Maple Market
Creates the account, owns the share and pays credit charges.
Managed reader account
Mounts the share. An administrator configures users and warehouse.
Partner analyst
Reads approved rows without broad admin privileges.

Create a test reader account and verify the assigned identity

The provider needs sharing and reader-account provisioning available. An approved provider administrator uses ACCOUNTADMIN or the global CREATE ACCOUNT privilege. This optional live example provisions billable resources. Use an unused lab identifier. Generate the initial credential through approved controls and handle it privately, never in a lesson, ticket or data product. Alternatively use Admin → Accounts → Reader accounts → New in Snowsight.

The command returns account identifiers and a URL. Provisioning can take up to five minutes. Sign in to the assigned URL, complete the account’s authentication requirements and run the identity query there. Exchange only the approved account locator and organization-qualified name. Snowflake documents a default limit of 75 reader accounts per provider.

Run on the provider as the account administrator

SQL · configuration template
USE ROLE ACCOUNTADMIN;
CREATE MANAGED ACCOUNT MAPLE_M19_READER
  ADMIN_NAME = M19_INITIAL_ADMIN,
  ADMIN_PASSWORD = '<approved_generated_secret>',
  TYPE = READER;
SHOW MANAGED ACCOUNTS;

Confirm the region and locator inside the reader account

SQL · runnable example
SELECT CURRENT_ORGANIZATION_NAME() AS ORG_NAME,
       CURRENT_ACCOUNT_NAME() AS ACCOUNT_NAME,
       CURRENT_ACCOUNT() AS ACCOUNT_LOCATOR,
       CURRENT_REGION() AS REGION;

Expose the existing lab product to the reader account

In the provider account use the share owner with MANAGE SHARE TARGET. Use an already configured, approved M19 lab share. Add the verified reader locator to the entitlement map before inviting the account. The reader customer in this example is approved for India. Check the existing map before inserting to avoid duplicates.

SQL · configuration template
USE ROLE M19_SHARE_ADMIN;
INSERT INTO LS_M19_SHARE_LAB.CORE.PARTNER_ENTITLEMENT
VALUES ('<verified_reader_locator>','IN');
ALTER SHARE MAPLE_M19_SALES_SHARE ADD ACCOUNTS = <verified_reader_locator>;
SHOW GRANTS OF SHARE MAPLE_M19_SALES_SHARE;

Mount the data and control the reader warehouse before access

In the reader account, the initial administrator imports the inbound share. Set up a named person identity through the approved sign-in path. Use the permitted user in the GRANT, and keep the initial administrative login out of routine queries. The account administrator provisions a dedicated, initially suspended X-Small warehouse with auto-suspend and assigns the monitor before granting USAGE.

The quota of 5 credits illustrates configuration and is not a universal recommendation. At the threshold, SUSPEND_IMMEDIATE can cancel running queries. A monitor is a warehouse control, not an exact account cost ceiling. Check its assignment, support process and approved budget before allowing query access.

SQL · configuration template
-- Reader account, as its ACCOUNTADMIN.
USE ROLE ACCOUNTADMIN;
CREATE DATABASE MAPLE_M19_READER_IMPORT
  FROM SHARE <verified_provider_locator>.MAPLE_M19_SALES_SHARE;
CREATE WAREHOUSE M19_READER_WH WITH WAREHOUSE_SIZE = 'XSMALL'
  AUTO_SUSPEND = 60 AUTO_RESUME = TRUE INITIALLY_SUSPENDED = TRUE;
CREATE RESOURCE MONITOR M19_READER_MONITOR WITH CREDIT_QUOTA = 5
  FREQUENCY = MONTHLY START_TIMESTAMP = IMMEDIATELY
  TRIGGERS ON 100 PERCENT DO SUSPEND_IMMEDIATE;
ALTER WAREHOUSE M19_READER_WH SET RESOURCE_MONITOR = M19_READER_MONITOR;

CREATE ROLE M19_READER_ANALYST;
GRANT USAGE ON WAREHOUSE M19_READER_WH TO ROLE M19_READER_ANALYST;
GRANT IMPORTED PRIVILEGES ON DATABASE MAPLE_M19_READER_IMPORT TO ROLE M19_READER_ANALYST;
GRANT ROLE M19_READER_ANALYST TO USER <approved_reader_user>;

SHOW RESOURCE MONITORS;

Verify the reader’s output and find its charges

Run the first block as the designated analyst in the reader account. It shows the expected India total of 150 before the correction or 175 after it. A user without imported privileges should fail. If the role and share are correct but the query cannot start, check whether the resource monitor suspended the warehouse and investigate usage before raising the quota.

In the provider account, a permitted reader-usage administrator can query the second block. The hourly history can lag. A newly configured account may return zero rows until usage arrives. Compare the account and warehouse with the owned inventory, and read billing data through the approved role.

Read the imported data under the reader role

SQL · runnable example
USE ROLE M19_READER_ANALYST;
USE SECONDARY ROLES NONE;
USE WAREHOUSE M19_READER_WH;
SELECT REGION, SALE_DATE, ORDER_COUNT, NET_SALES
FROM MAPLE_M19_READER_IMPORT.PARTNER.SALES_DAILY;

Inspect reader-account metering from the provider

SQL · configuration template
SELECT READER_ACCOUNT_NAME, WAREHOUSE_NAME, START_TIME, CREDITS_USED
FROM SNOWFLAKE.READER_ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY
WHERE START_TIME >= DATEADD('day', -1, CURRENT_TIMESTAMP())
  AND READER_ACCOUNT_NAME = '<name_from_show_managed_accounts>'
  AND WAREHOUSE_NAME = 'M19_READER_WH'
ORDER BY START_TIME DESC;

Stop access and retire only the approved disposable account

First remove the reader’s target from the provider share and verify the partner cannot query it. Remove the separate map row after verifying its exact locator. Review the metering and confirm the account owns no resources that must be preserved. Only then can the authorized provider administrator drop MAPLE_M19_READER. The command deletes objects in that account and cannot be undone. The ordinary partner’s account is a different target.

SQL · configuration template
-- Provider share owner.
USE ROLE M19_SHARE_ADMIN;
ALTER SHARE MAPLE_M19_SALES_SHARE REMOVE ACCOUNTS = <verified_reader_locator>;
DELETE FROM LS_M19_SHARE_LAB.CORE.PARTNER_ENTITLEMENT
WHERE ACCOUNT_LOCATOR = '<verified_reader_locator>' AND REGION = 'IN';
SHOW GRANTS OF SHARE MAPLE_M19_SALES_SHARE;

-- Only after the reader test and cleanup approval, in the provider account.
USE ROLE ACCOUNTADMIN;
DROP MANAGED ACCOUNT MAPLE_M19_READER;
SHOW MANAGED ACCOUNTS;

Interview practice

Explain the decision and the evidence you would use to test it.

What makes a reader account different from a standard consumer?

The provider creates, supports and pays for it. It consumes only the creating provider’s shares and has additional limits on loading and transformations.

How do you contain runaway reader compute?

I start with a suspended, appropriately sized warehouse. I attach a resource monitor before granting access, set auto-suspend and track the actual reader usage in the provider account.

A partner needs to load its own events and refresh Dynamic Tables. Which option fits?

I would use a standard consumer account. The reader account blocks uploads and cannot refresh Dynamic Tables. I would also review who pays and supports the workload before choosing a delivery method.

Words used in this lesson
Reader account
Provider-managed Snowflake account for a recipient who is not already a customer.
Managed account
The Snowflake object used to create a reader account.
Resource monitor
A policy that can notify or suspend a warehouse after credit thresholds.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 1

Snowflake Reader Accounts: setup, access and provider billing

Maple Market
Managed reader account
Partner analyst

Reader account billing and operations

The reader user queries the provider’s shared view. Warehouse usage is billed back to the provider.

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
  1. Reader account billing and operations

    The reader user queries the provider’s shared view. Warehouse usage is billed back to the provider.

    Maple Market → Managed reader account → Partner analyst

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.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. 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.
  3. 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.
  4. 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.

Before running this lesson

The datasets are fictional. Results are expected or simulated. Run live steps only in approved test accounts with the documented roles, regions, and feature access.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Who pays for the reader account warehouse?

Try it yourself

The reader is invited but returns no sales. Which views or records do you compare?

Compare your reasoning

Confirm the import and analyst role, check the reader’s CURRENT_ACCOUNT locator against the provider entitlement and then check that the selected region has a published sales row.

Connect this lesson to the learning path

Official sources and curriculum

Module 19 · See module scope

By Rohit Ray · Independent educational lesson · Explore this visual lab