Role A has the following permissions:
. USAGE on db1
. USAGE and CREATE VIEW on schemal in db1
. SELECT on tablel in schemal
Role B has the following permissions:
. USAGE on db2
. USAGE and CREATE VIEW on schema2 in db2
. SELECT on table2 in schema2
A user has Role A set as the primary role and Role B as a secondary role.
What command will fail for this user?
This command will fail because while the user has USAGE permission on db2 and schema2 through Role B, and can create a view in schema2, they do not have SELECT permission on db1.schemal.table1 with Role B. Since Role A, which has SELECT permission on db1.schemal.table1, is not the currently active role when the view v2 is being created in db2.schema2, the user does not have the necessary permissions to read from db1.schemal.table1 to create the view. Snowflake's security model requires that the active role have all necessary permissions to execute the command.
Clement
9 months agoFanny
9 months agoMila
9 months agoTheodora
10 months agoTayna
10 months agoSoledad
10 months agoLinette
10 months agoRana
10 months agoEva
11 months agoSylvie
11 months agoDevora
11 months agoJerilyn
11 months agoTyisha
11 months agoEzekiel
11 months agoAntione
11 months agoBrandon
11 months agoRosalind
11 months agoDorothy
2 years agoTyra
2 years agoReita
2 years agoTula
2 years agoAretha
2 years agoReita
2 years agoMona
2 years agoMila
2 years ago