Is GRANT DELETE TABLE t TO PUBLIC and the revoke the right to DELETE TABLE t FROM user1 possible?

All we need is an easy explanation of the problem, so here it is.

I have a production database that has GRANTs TO PUBLIC for INSERT, UPDATE, DELETE on specific tables of the production schema, table t1 being one of these tables.

Say I want to create a user user1 that cannot INSERT, UPDATE, DELETE on table t1. Is there a way to revoke these privileges for user1 while keeping the GRANTs TO PUBLIC?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

If something is granted to PUBLIC, that’s it. There is no ‘blacklist’ or ‘grant to public but not to Joe’. You should manage this with profiles.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply