Improve Deep Data Security lab scenarios
This commit is contained in:
2
scenarios/01-ai-prompt-injection/sql/03_data_grants.sql
Normal file → Executable file
2
scenarios/01-ai-prompt-injection/sql/03_data_grants.sql
Normal file → Executable file
@@ -3,7 +3,7 @@ WHENEVER SQLERROR EXIT SQL.SQLCODE
|
||||
CREATE OR REPLACE DATA GRANT ai_sales_rep_customers
|
||||
AS SELECT (customer_id, customer_name, region, account_owner, risk_rating)
|
||||
ON dds_ai_customers
|
||||
WHERE account_owner = ORA_END_USER_CONTEXT.username
|
||||
WHERE region = 'LATAM'
|
||||
TO sales_rep_role;
|
||||
|
||||
CREATE OR REPLACE DATA GRANT ai_regional_manager_customers
|
||||
|
||||
Reference in New Issue
Block a user