sync
This commit is contained in:
10
PII cleanup/give dev the ability to disable triggers.sql
Normal file
10
PII cleanup/give dev the ability to disable triggers.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
USE [Arizona]
|
||||
|
||||
--pharmacy
|
||||
|
||||
GRANT ALTER ON dbo.[Stock_transaction_master] TO [dbRoleDevUsr]
|
||||
GRANT ALTER ON dbo.[Document_line] TO [dbRoleDevUsr]
|
||||
GRANT ALTER ON dbo.[Document_line_link] TO [dbRoleDevUsr]
|
||||
|
||||
--central
|
||||
GRANT ALTER ON dbo.[Entry] TO [dbRoleDevUsr]
|
||||
1112
PII cleanup/reworked roles from security tool.sql
Normal file
1112
PII cleanup/reworked roles from security tool.sql
Normal file
File diff suppressed because it is too large
Load Diff
34
PII cleanup/roles revokes on pharmacy.sql
Normal file
34
PII cleanup/roles revokes on pharmacy.sql
Normal file
@@ -0,0 +1,34 @@
|
||||
USE [Arizona]
|
||||
|
||||
BEGIN TRANSACTION
|
||||
SET XACT_ABORT ON;
|
||||
|
||||
--dbRoleDevUsr
|
||||
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleDevUsr]
|
||||
REVOKE UPDATE ON [wkl].[DocumentSignature] TO [dbRoleDevUsr]
|
||||
EXEC [sys].[sp_addrolemember] @rolename = 'db_datawriter',
|
||||
@membername = 'dbRoleDevUsr'
|
||||
EXEC [sys].[sp_addrolemember] @rolename = 'db_datareader',
|
||||
@membername = 'dbRoleDevUsr'
|
||||
|
||||
|
||||
--dbRoleIttechUsr
|
||||
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleIttechUsr]
|
||||
REVOKE UPDATE ON [wkl].[DocumentSignature] TO [dbRoleIttechUsr]
|
||||
|
||||
--dbRoleTPPos
|
||||
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleTPPos]
|
||||
REVOKE INSERT ON [wkl].[DocumentSignature] TO [dbRoleTPPos]
|
||||
REVOKE SELECT ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
|
||||
REVOKE UPDATE ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
|
||||
REVOKE SELECT ON [dbo].[Bmc_application_key] TO [dbRoleTPPos]
|
||||
REVOKE UPDATE ON [dbo].[Bmc_application_key] TO [dbRoleTPPos]
|
||||
REVOKE SELECT ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
|
||||
REVOKE UPDATE ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
|
||||
REVOKE SELECT ON [dbo].[IT_config_setting] TO [dbRoleTPPos]
|
||||
REVOKE UPDATE ON [dbo].[IT_config_setting] TO [dbRoleTPPos]
|
||||
REVOKE SELECT ON [dbo].[Organizational_unit] TO [dbRoleTPPos]
|
||||
REVOKE UPDATE ON [dbo].[Organizational_unit] TO [dbRoleTPPos]
|
||||
|
||||
--ROLLBACK TRANSACTION
|
||||
COMMIT TRANSACTION
|
||||
Reference in New Issue
Block a user