We need users to move their tables from their personal schemas (user_db.username) to the managed schema (userdb.groupname) which provides a predefined set of permissions for select access. In moving the table, we need to accomplish the following:
- Move the table out of the old schema
- Remove the old select grants
- Apply the new grants from the managed schema
I've reviewed the Alter table .. rename to.. documentation, and while that appears to enable movement of the table, it would retain the old grants and not apply the new ones.
Is there an option or another way to do this in Snowflake SQL?