You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
8
+
# (this is just an example, not intended to be a production configuration)
VALUES (1, 'Unity Administrator', 'An administrator of the Unity Platform. A user with this role can perform any operation.'),
40
+
(2, 'Tenant Administrator', 'An administrator for a tenant. A user with this role can perform any operation for the tenant.'),
41
+
(3, 'Libre311 Administrator', 'An administrator for Libre311. A user with this role can perform any operation in Libre311 on behalf of their tenant.'),
42
+
(4, 'Libre311 Request Manager', 'A service request manager for Libre311. A user with this role can update and manage service requests.'),
43
+
(5, 'Libre311 Jurisdiction Administrator', 'An administrator for Libre311 that is scoped to specific jurisdictions. Additional access must be granted in Libre311 to enable access for specific jurisdictions.'),
44
+
(6, 'Libre311 Jurisdiction Request Manager', 'A service request manager for Libre311 that is scoped to specific jurisdictions. A user with this role can update and manage service requests. Additional access must be granted in Libre311 to enable access for specific jurisdictions.');
45
+
46
+
47
+
-- Unity Administrator
48
+
INSERT INTO role_permission (role_id, permission_id)
49
+
VALUES (1, 1), -- AUTH_SERVICE_EDIT-SYSTEM
50
+
(1, 2), -- AUTH_SERVICE_VIEW-SYSTEM
51
+
(1, 5), -- LIBRE311_ADMIN_EDIT-SYSTEM
52
+
(1, 6), -- LIBRE311_ADMIN_VIEW-SYSTEM
53
+
(1, 11), -- LIBRE311_REQUEST_EDIT-SYSTEM
54
+
(1, 12); -- LIBRE311_REQUEST_VIEW-SYSTEM
55
+
56
+
-- Tenant Administrator
57
+
INSERT INTO role_permission (role_id, permission_id)
58
+
VALUES (2, 3), -- AUTH_SERVICE_EDIT-TENANT
59
+
(2, 4), -- AUTH_SERVICE_VIEW-TENANT
60
+
(2, 7), -- LIBRE311_ADMIN_EDIT-TENANT
61
+
(2, 8), -- LIBRE311_ADMIN_VIEW-TENANT
62
+
(2, 13), -- LIBRE311_REQUEST_EDIT-TENANT
63
+
(2, 14); -- LIBRE311_REQUEST_VIEW-TENANT
64
+
65
+
-- Libre311 Administrator
66
+
INSERT INTO role_permission (role_id, permission_id)
67
+
VALUES (3, 7), -- LIBRE311_ADMIN_EDIT-TENANT
68
+
(3, 8), -- LIBRE311_ADMIN_VIEW-TENANT
69
+
(3, 13), -- LIBRE311_REQUEST_EDIT-TENANT
70
+
(3, 14); -- LIBRE311_REQUEST_VIEW-TENANT
71
+
72
+
-- Libre311 Request Manager
73
+
INSERT INTO role_permission (role_id, permission_id)
74
+
VALUES (4, 13), -- LIBRE311_REQUEST_EDIT-TENANT
75
+
(4, 14); -- LIBRE311_REQUEST_VIEW-TENANT
76
+
77
+
-- Libre311 Jurisdiction Administrator
78
+
INSERT INTO role_permission (role_id, permission_id)
79
+
VALUES (5, 9), -- LIBRE311_ADMIN_EDIT-SUBTENANT
80
+
(5, 10), -- LIBRE311_ADMIN_VIEW-SUBTENANT
81
+
(5, 15), -- LIBRE311_REQUEST_EDIT-SUBTENANT
82
+
(5, 16); -- LIBRE311_REQUEST_VIEW-SUBTENANT
83
+
84
+
-- Libre311 Jurisdiction Request Manager
85
+
INSERT INTO role_permission (role_id, permission_id)
0 commit comments