Skip to content

The open alternative to Salesforce, designed for AI.

518 B
Raw Blame
import { PermissionFlagType } from 'twenty-shared/constants';

import { type AccessPolicy } from 'src/engine/guards/types/access-policy.type';

export const ROLE_ASSIGNMENT_ACCESS_POLICY: AccessPolicy = {
  authPrincipals: {
    userSession: {
      standard: true,
      impersonated: true,
      playground: true,
      workspaceAgnostic: false,
    },
    apiKey: false,
    oauthClient: { withUser: true, withoutUser: false },
    application: false,
  },
  requiredPermissionFlags: [PermissionFlagType.ROLES],
};