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.
Parameters
Section titled “Parameters”permissionSetNames
Section titled “permissionSetNames”string[]
Permission set API names.
aliasOrUsername?
Section titled “aliasOrUsername?”string
The org. Omit to use the default target org.
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”If any assignment failed; the others are still attempted.