Skip to content

compilePermissionSet

compilePermissionSet(scan, options): PermissionSetTemplateData

Defined in: packages/simply-permissions-core/src/permissionSetBuild.ts:184

Applies the type baseline to the scanned metadata, layers the config overrides on top, and assembles the permission set’s template data with every permission list sorted by API name.

Baselines: every type grants read on each scanned object and tab visibility; read-only and view-all also grant View All Fields (so no field permissions are emitted), view-all adds View All Records, and modify-all grants full CRUD, Modify All Records, and edit on every field.

PermissionSetSourceScan

PermissionSetBuildOptions

PermissionSetTemplateData