Skip to content

buildPermissionSetXml

buildPermissionSetXml(data): string

Defined in: permissionSetXmlTemplate.ts:79

Render a complete PermissionSet metadata XML document from template data.

Element text content is set via .txt(), which xmlbuilder2 escapes for us — there’s no hand-rolled escaping (and no risk of it drifting out of sync with what’s actually unsafe in XML text content).

PermissionSetTemplateData

The permission set’s label, description, activation requirement, and permission entries.

string

The rendered <PermissionSet> XML document, ready to write to a .permissionset-meta.xml file.