Could you please help me query, which can tell me which role has which tables access. E.g. Role Sales has access to t1, t2 and Role Analyst has access to t2. Thank you
Which Role has which tables access in Snowflake
2.5k Views Asked by Sahil Gupta At
1
There are 1 best solutions below
Related Questions in SNOWFLAKE-CLOUD-DATA-PLATFORM
- Snowflake subquery
- Error in granting ownership in snowflake tables
- Snowflake - Performance when column size is not specified
- snowflake json lateral subquery
- Looking to either Explode or unnest into an array in Snowflake SQL
- I am getting a Pipe Notifications bind failure
- How does run queue work in Snowflake? Is there a concept timeslice at all?
- TO_CHAR and SSSS (hours past midnight)
- Snowflake warehouse cache
- Power bi snowflake Default_role setting
- Error when installing `snowflake-connector-python` to GCP Cloud Composer
- How to Restart & Run All code if there is a Key Error during a ! pip install in Google Colab?
- Count number of records based on last updated date + null
- Task without Virtual Warehouse: Is the query failing or the task not starting?
- Need to include the offset value as expr in LAG functions
Related Questions in SHOW
- show/hide multiple div tags at once and change the size of the remaining div tag
- text show and hide with button php/js
- jQuery toggle by ESC and clicking
- content a textarea shows in a div
- Show/hide script in jQuery shows only last hidden div
- What should "git reflog show <ref>" show?
- Datatables show/hide row with jquery UI effect
- base.Show() throwing InvalidOperationException
- jQuery tooltip random appear
- How to add link_to under Div on ActiveAdmin's show page | Rails 4
- Instance of Show for lambda-abstraction ADT
- Watin. how to show invinsible class
- Cannot target DIV to .show() on toggleClass
- .PPT macro-enabled show path
- jQuery - link hides div
Related Questions in ROLES
- Dynamic roles list in CustomAuthorize ASP MVC
- Roles class asp.net mvc?
- Assigning Roles in AspNetUserRoles table made by Identity
- Wordpress - How to create new post from form without admin review?
- Meteor.users.find() - how to filter by group in alanning:roles package
- How do I assign specific roles to each user in rails?
- Change role of one user no working with Symfony2
- MVC Role Authorization not working for windows accounts
- Authorize attribute doesn't work in MVC
- Best Practices for Roles vs. Claims in ASP.NET Identity
- Find all users with specific Roles in Entrust for Laravel 5
- User specific content in Symfony
- When to use an application role in a database?
- Deploy scoped roles for web app in weblogic portal
- Laravel multiple midleware for some route
Related Questions in SQL-GRANT
- MySql can not grant privileges to root
- Error: ORA-00955: name is already used by an existing object in Oracle Function
- Why didn't MySQL GRANT create associated user accounts?
- Certificate - Give Grant to specific application
- What SQL privileges is it best to use to satisy requirements of most popular CMS
- Cant execute this instruction in the database GRANT EXEC sp_configure to user
- grant to multiple db using one command
- Are 'rajivratn'@'%' and rajivratn@localhost refer to same user in MySQL?
- Sybase SQL anywhere 11 Grant/Revoke on column views
- GRANT Table Permissions for a limited amount of time
- How to run a function from system?
- Allow a user can see stored procedures created by others users
- ORACLE PL/SQL - GRANT/REVOKE Privilege
- Grant privilege update with restrictions in Oracle
- Grant create privilage on Role in OracleDBMS
Related Questions in SNOWFLAKE-SCHEMA
- Snowflake dimension with multiple levels mondrian
- Snowflake schema dimension
- Substring in Snowflake, string is the parameter value
- How can I access my spark SQL-query on aws-glue snowflake
- Which Role has which tables access in Snowflake
- How to make Snowflake as application back end data base for fast search
- Can you extract a dimension table from a fact table?
- Behavior of DEFAULT option in Snowflake Tables
- Correlated Sub Queries in Snowflake
- Error while loading csv file to Snowflake Table as "Timestamp '9/15/2020 1:28:00 AM' is not recognized"
- Snowflake interprets boolean values in parquet as NULL?
- Snowflake - Querying Nested JSON
- Relational Integrity between OLAP and OLTP
- Warehouse - snowflaking
- Warehouse - one dimension for multiple dates?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can check which roles have access to a certain table by running
SHOW GRANTS.Examples:
SHOW GRANTS TO yourRole;SHOW GRANTS ON TABLE myTable;More info and other variations can be found here: https://docs.snowflake.com/en/sql-reference/sql/show-grants.html
On top of that you may query the information schema view TABLE_PRIVILEGES to see more information: https://docs.snowflake.com/en/sql-reference/info-schema/table_privileges.html
Note here: You only see objects here for which the current role of your session has access privileges.