# How can a Snowflake provider share only approved rows and columns and verify access?

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Data Collaboration
Updated: 2026-11-25T08:00:27.39843+00:00
HTML: https://learningpathx.com/faq/COF-C03/cofc03-snowflake-secure-share-grants-and-validation.html

## Also asked as

- How do I grant and test a secure view in a Snowflake share?
- How can I check that consumers see the intended subset of data in a Snowflake share?

Expose a secure view that selects the approved columns and filters rows for the intended audience. Grant access to that view through the share, then verify the view's results and the consumer's access. For single-database sharing, provider grants can go directly to the share or through a supported database role.

Make the change with a provider role that can authorize the object grants. If the role also adds or removes consumers, it needs share ownership and the global `MANAGE SHARE TARGET` privilege. With direct grants, give the share `USAGE` on the database and schema that hold the view and `SELECT` on the secure view. If the view also reads objects in other databases in the same provider account, grant `REFERENCE_USAGE` on each referenced database directly to the share before granting the view. Use the direct grant path for a secure view spanning databases, since database roles cannot carry these reference grants.

Use `SHOW GRANTS TO SHARE` to inspect the share's grants. A provider can use `SIMULATED_DATA_SHARING_CONSUMER` to check secure view or secure materialized view output, and a real consumer session is needed to verify the full import, local grants and query path. Recheck grants and exposed rows if a view is recreated, even when its name is unchanged. Removing an account from a direct share ends that account's access to the share. Verify the resulting access after changing the share or replacing one of its objects. Apply the documented requirements for object types such as secure UDFs and for policies separately.

[Create and configure shares](https://docs.snowflake.com/en/user-guide/data-sharing-provider) · [Use secure objects to control data access](https://docs.snowflake.com/en/user-guide/data-sharing-secure-views) · [Share data from multiple databases](https://docs.snowflake.com/en/user-guide/data-sharing-multiple-db) · [Privileges for data sharing](https://docs.snowflake.com/en/user-guide/security-access-privileges-shares) · [About Secure Data Sharing](https://docs.snowflake.com/en/user-guide/data-sharing-intro) · [SHOW GRANTS](https://docs.snowflake.com/en/sql-reference/sql/show-grants)

Source: [Secure Data Sharing, Marketplace, and Collaboration Models](https://learningpathx.com/news/secure-data-sharing-marketplace-and-collaboration-models.html)
