如何将所有 Snowflake 数据库(包括未来)的使用权授予角色?
how can I grant usage on all Snowflake databases (inlcuding future) to a role?
我想创建一个角色,该角色有权克隆现在和将来的任何数据库。
类似于
GRANT CREATE DATABASE ON ACCOUNT TO ROLE CLONE_ADMIN;
其次是
GRANT USAGE ON FUTURE DATABASES TO ROLE CLONE_ADMIN;
可能吗?
未来的资助只能应用于架构对象。
来自文档"When a database is cloned, the schemas in the cloned database copy the future privileges from the source schemas. This maintains consistency with the regular object grants, in which the grants of the source object (i.e. database) are not copied to the clone, but the grants on all the children objects (i.e. schemas in the database) are copied to the clones."
未来的拨款不能应用于数据库。
- 使用角色帐户;
- 使用数据库分析;
- 创建或替换角色数据;
- 授予对数据的数据库分析使用权;
- 根据角色数据授权创建数据库;
- 向用户授予角色数据 NEW_USER1;
- 使用角色数据;
- 创建数据库 Z_NEW_USER1_测试克隆分析;
数据库级别的未来授权功能已在路线图中。它目前正在与选定的客户进行私人预览,以收集早期用户的反馈。
当更广泛的受众可以访问此功能时,请关注 Snowflake 的更新。
我想创建一个角色,该角色有权克隆现在和将来的任何数据库。
类似于
GRANT CREATE DATABASE ON ACCOUNT TO ROLE CLONE_ADMIN;
其次是
GRANT USAGE ON FUTURE DATABASES TO ROLE CLONE_ADMIN;
可能吗?
未来的资助只能应用于架构对象。
来自文档"When a database is cloned, the schemas in the cloned database copy the future privileges from the source schemas. This maintains consistency with the regular object grants, in which the grants of the source object (i.e. database) are not copied to the clone, but the grants on all the children objects (i.e. schemas in the database) are copied to the clones."
未来的拨款不能应用于数据库。
- 使用角色帐户;
- 使用数据库分析;
- 创建或替换角色数据;
- 授予对数据的数据库分析使用权;
- 根据角色数据授权创建数据库;
- 向用户授予角色数据 NEW_USER1;
- 使用角色数据;
- 创建数据库 Z_NEW_USER1_测试克隆分析;
数据库级别的未来授权功能已在路线图中。它目前正在与选定的客户进行私人预览,以收集早期用户的反馈。 当更广泛的受众可以访问此功能时,请关注 Snowflake 的更新。