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.

질문됨 일 년 전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
답변함 일 년 전
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;
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠