Skip to content

assignPermissionSets

assignPermissionSets(permissionSetNames, aliasOrUsername?): Promise<void>

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

Assigns permission sets to an org’s own user, one at a time: what sf org assign permset --name … does. An already-assigned permission set is a failure, as it is for the CLI.

string[]

Permission set API names.

string

The org. Omit to use the default target org.

Promise<void>

If any assignment failed; the others are still attempted.