-- New scopes, permissions, and role assignments
INSERT INTO blc_security_scope (id, name, open) VALUES ('-623', 'APPLICATION_PROFILE_VIEW', 'N');
INSERT INTO blc_permission_scope (id, permission, is_permission_root, scope_id) VALUES ('-1024', 'APPLICATION_PROFILE_VIEW', 'Y', '-623');
INSERT INTO blc_user_permission (id, archived, last_updated, name, is_account_perm, user_assignable) VALUES ('-851', 'N', '1970-01-01 00:00:00.000000', 'READ_APPLICATION_PROFILE_VIEW', 'N', 'Y');
INSERT INTO blc_security_scope (id, name, open) VALUES ('-624', 'APPLICATION_CATALOG_VIEW', 'N');
INSERT INTO blc_permission_scope (id, permission, is_permission_root, scope_id) VALUES ('-1025', 'APPLICATION_CATALOG_VIEW', 'Y', '-624');
INSERT INTO blc_user_permission (id, archived, last_updated, name, is_account_perm, user_assignable) VALUES ('-852', 'N', '1970-01-01 00:00:00.000000', 'READ_APPLICATION_CATALOG_VIEW', 'N', 'Y');
-- Add permissions to out of box admin roles
INSERT INTO blc_role_permission_xref (role_id, permission_id) VALUES
('-1', '-851'),
('-1', '-852'),
('-200', '-851'),
('-200', '-852'),
('-201', '-851'),
('-201', '-852'),
('-202', '-851'),
('-202', '-852'),
('-2', '-851'),
('-2', '-852'),
('-7', '-851'),
('-7', '-852')