Amazon Redshift Grants - New table can't be accessed even though user has grants to all tables in schema

后端 未结 4 1685
心在旅途
心在旅途 2021-02-02 12:13

I have a bit of a funny situation in Amazon Redshift where I have a user X who has grant select on all tables in schema public, but once a new table is created, this grant doesn

4条回答
  •  有刺的猬
    2021-02-02 13:01

    Executing the following command as super user (master):

    alter default privileges 
      for user staging_user 
      in schema staging 
      grant select on tables 
      to reporting_user;
    

    will allow reporting_user to select data from all future tables created by staging_user in schema staging.

提交回复
热议问题