Skip to content

assignPermissionSetLicenses

assignPermissionSetLicenses(licenseNames, aliasOrUsername?): Promise<void>

Defined in: packages/simply-cicd-core/src/sfOrg.ts:146

Assigns permission set licenses to an org’s own user: what sf org assign permset-license --name … does. A license is matched by DeveloperName or MasterLabel; one that is already assigned is a success (with a warning), as it is for the CLI.

string[]

Permission set license developer names or labels.

string

The org. Omit to use the default target org.

Promise<void>

If any assignment failed; the others are still attempted.