首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >用于默认访问的RBAC

用于默认访问的RBAC
EN

Stack Overflow用户
提问于 2022-10-06 13:19:58
回答 1查看 34关注 0票数 0

需要一些关于RBAC治理的投入。

代码语言:javascript
运行
复制
Scenario:: 
There is a role in QA READ_ROLE_QA and that has access to 2 schemas ie., 
schema_etl & schema_load

Now under schema_etl if any objects are getting created i.e., tables & view then by default who ever has access to the role "READ_ROLE_QA" is able to see those objects.

But if any object gets created under schema "schema_load" then all users who has access to the role "READ_ROLE_QA" is not able to even see those objects.

所需投入:

如何确保需要给予角色“"READ_ROLE_QA".

  • Currently”的访问权限,以便在默认情况下在架构"schema_load“下创建的任何对象对于具有角色"schema_load".

的角色”使用“权限的用户是可见的。

感谢您对此请求的任何帮助输入。

EN

回答 1

Stack Overflow用户

发布于 2022-10-06 13:24:33

请查看未来在雪花的赠款:https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html#future-grants-on-database-or-schema-objects

下面的语句允许角色READ_ROLE_QA访问架构schema_load中未来创建的所有表。(其他特权,如给予的使用。)

代码语言:javascript
运行
复制
grant select on future tables in schema <database>.schema_load to role READ_ROLE_QA;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73974561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档