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 年前236 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则