ALTER DEFAULT PRIVILEGES IN SCHEMA sde GRANT SELECT , INSERT , UPDATE , DELETE ON TABLES…
- User
ALTER DEFAULT PRIVILEGES IN SCHEMA sde GRANT SELECT , INSERT , UPDATE , DELETE ON TABLES TO PUBLIC; I want it to be private
- Assistant
To alter the default privileges for tables in a specific schema (in your case,
sde) to make them private and not accessible to thePUBLICrole, you can revoke the privileges that were granted toPUBLICor adjust the default privileges.If you want to ensure that the default privileges do not grant access to the
PUBLIC, you can simply not set them forPUBLICor you can revoke the privileges if they were already granted.Here's how you can revoke the privileges from
PUBLICif they have already been set:sqlREVOKE SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA sde FROM PUBLIC;If you want to set the default privileges so that new tables created in the schema are private and do not grant access to , you may do nothing if the previous command ensured that does not have these rights. If you need to set explicit default privileges for new tables, you typically would set them to a specific role (e.g., restricting access only to certain users).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.