2023-11-16 03:11:55 -08:00
|
|
|
import type { Scope } from '@n8n/permissions';
|
|
|
|
|
|
|
|
export const ownerPermissions: Scope[] = [
|
|
|
|
'workflow:create',
|
|
|
|
'workflow:read',
|
|
|
|
'workflow:update',
|
|
|
|
'workflow:delete',
|
|
|
|
'workflow:list',
|
|
|
|
'workflow:share',
|
2023-11-28 03:41:34 -08:00
|
|
|
'tag:create',
|
|
|
|
'tag:read',
|
|
|
|
'tag:update',
|
|
|
|
'tag:delete',
|
|
|
|
'tag:list',
|
2023-11-16 03:11:55 -08:00
|
|
|
'user:create',
|
|
|
|
'user:read',
|
|
|
|
'user:update',
|
|
|
|
'user:delete',
|
|
|
|
'user:list',
|
2023-11-28 03:41:34 -08:00
|
|
|
'user:resetPassword',
|
2023-11-16 03:11:55 -08:00
|
|
|
'credential:create',
|
|
|
|
'credential:read',
|
|
|
|
'credential:update',
|
|
|
|
'credential:delete',
|
|
|
|
'credential:list',
|
2023-11-28 02:44:55 -08:00
|
|
|
'credential:share',
|
2023-11-16 03:11:55 -08:00
|
|
|
'variable:create',
|
|
|
|
'variable:read',
|
|
|
|
'variable:update',
|
|
|
|
'variable:delete',
|
|
|
|
'variable:list',
|
|
|
|
'sourceControl:pull',
|
|
|
|
'sourceControl:push',
|
|
|
|
'sourceControl:manage',
|
2023-11-28 03:41:34 -08:00
|
|
|
'externalSecretsProvider:create',
|
|
|
|
'externalSecretsProvider:read',
|
|
|
|
'externalSecretsProvider:update',
|
|
|
|
'externalSecretsProvider:delete',
|
|
|
|
'externalSecretsProvider:list',
|
|
|
|
'externalSecretsProvider:sync',
|
|
|
|
'externalSecret:list',
|
|
|
|
'orchestration:read',
|
|
|
|
'orchestration:list',
|
|
|
|
'communityPackage:install',
|
|
|
|
'communityPackage:uninstall',
|
|
|
|
'communityPackage:update',
|
|
|
|
'communityPackage:list',
|
|
|
|
'ldap:manage',
|
|
|
|
'ldap:sync',
|
|
|
|
'saml:manage',
|
|
|
|
'eventBusEvent:create',
|
|
|
|
'eventBusEvent:read',
|
|
|
|
'eventBusEvent:update',
|
|
|
|
'eventBusEvent:delete',
|
|
|
|
'eventBusEvent:list',
|
|
|
|
'eventBusEvent:query',
|
|
|
|
'eventBusEvent:create',
|
|
|
|
'eventBusDestination:create',
|
|
|
|
'eventBusDestination:read',
|
|
|
|
'eventBusDestination:update',
|
|
|
|
'eventBusDestination:delete',
|
|
|
|
'eventBusDestination:list',
|
|
|
|
'eventBusDestination:test',
|
2023-11-16 03:11:55 -08:00
|
|
|
];
|
|
|
|
export const adminPermissions: Scope[] = ownerPermissions.concat();
|
|
|
|
export const memberPermissions: Scope[] = [
|
|
|
|
'user:list',
|
|
|
|
'variable:list',
|
|
|
|
'variable:read',
|
|
|
|
'tag:create',
|
|
|
|
'tag:read',
|
|
|
|
'tag:update',
|
|
|
|
'tag:list',
|
2023-11-28 03:41:34 -08:00
|
|
|
'eventBusEvent:list',
|
|
|
|
'eventBusEvent:read',
|
|
|
|
'eventBusDestination:list',
|
|
|
|
'eventBusDestination:test',
|
2023-11-16 03:11:55 -08:00
|
|
|
];
|