Object visibility for users - user can see all objects

0

Hi

When I create a user by simply running

create user my_test_user password 'abc123';

this user can see all the objects in all schemas automatically. No other grant commands were issued. By seeing I mean the user can see the table and column names (i.e. metadata). Of course, the user cannot do 'select * from table' for example. There, a message comes saying "permission denied".

This behaviour was observed before:

Is there still no way to restrict the visibility of the objects to specific users? At least I have not seen anything in the documentation.

MarcelZ
已提問 5 年前檢視次數 237 次
2 個答案
0
已接受的答案

Hi MarcelZ,

What you see is correct database table visibility is not controlled by GRANT statements. This is something Redshift inherits from PostgreSQL and is characteristic of all PostgreSQL derived database engines.

Here's another more recent forum thread where I commented on the same kind of ask:

https://forums.aws.amazon.com/thread.jspa?threadID=298823&tstart=25

I hope this helps explain the Redshift behavior you see.

Regards,

klarson
已回答 5 年前
0

Hi klarson

Thanks for your info. Ok, so this is the expected behaviour inherited from PostgreSQL. I think one of the earlier posts was mentioning this as well. I wanted to check if this is still the default behaviour.

Thanks again for your help!

Regards, Marcel

MarcelZ
已回答 5 年前

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

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

回答問題指南