>> GRANT CREATE TABLE TO that_user;
This makes sense, thank you! That will help them create their own tables in the same environment as the tables they'd like to CTAS source or import their own data. Then, it would be a training task to ask them to create all of their tables as "ABC_", for example, if I want them to stay in that prefix. Also tested to make sure after CREATE, they're able to TRUNCATE, DELETE, INSERT, DROP - and they will. Main concern was ensuring they could do no harm to other existing objects. Will give this a try - we have backups :) thank you!
------------------------------
Greg Brown
------------------------------
Original Message:
Sent: Tue January 17, 2023 10:24 AM
From: MARK Fraase
Subject: How Best to Setup User Sandbox?
>> Have a request where users would like to be able to create their own table objects.
>> They would like to run CREATE TABLE FROM or import their own data into Netezza to work with.
GRANT CREATE TABLE TO that_user;
They will be able to create their own tables (and do anything to THOSE tables that they want).
This (by itself) does not give them any access to any other objects in that database.
You can easily see who created/owns each table.
>> Does Netezza have a way to GRANT permissions on objects given a set prefix?
No. You can do it for specific objects, or for all objects in that class (e.g., grant list,select on TABLE to that_user; )
------------------------------
MARK Fraase
------------------------------