redshift serverless

0

i want to create to schemas under dev db schema1 and schema2

Create 2 user: user1 and user 2

i want solution for below scenario. user1 should have access to only schema1 and user2 should have access to only schema2.

both the user should be able to perform all the opration under assigned schema.

已提問 1 年前檢視次數 216 次
2 個答案
0

As an administrator you first create the two users: user1 and user2

Then you create the schemas with authorization for each user respectively, example create schema schema1 authorization user1;

profile pictureAWS
已回答 1 年前
0

Below statements will do what you are looking for:

create schema schema1;
create user user1;
grant usage on schema schema1 to user1;
grant select on all tables in schema schema1 to user1;

create schema schema2;
create user user2;
grant usage on schema schema2 to user2;
grant select on all tables in schema schema2 to user2;
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南