diff --git a/src/commands/force/user/create.ts b/src/commands/force/user/create.ts index a184caf7..50297b48 100644 --- a/src/commands/force/user/create.ts +++ b/src/commands/force/user/create.ts @@ -101,7 +101,7 @@ export class UserCreateCommand extends SfdxCommand { ? fields.permsets : fields.permsets.trim().split(','); - await this.user.assignPermissionSets(fields.id, permsetArray); + await this.user.assignPermissionSets(this.authInfo.getFields().userId, permsetArray); this.successes.push({ name: 'Permission Set Assignment', value: permsetArray.join(','),