Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on multiple PSL assignments #2744

Closed
thvd opened this issue Feb 23, 2024 · 6 comments
Closed

Error on multiple PSL assignments #2744

thvd opened this issue Feb 23, 2024 · 6 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@thvd
Copy link

thvd commented Feb 23, 2024

Summary

The docs describe you can assign multiple PSL at once using the -n parameter: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm#cli_reference_org_assign_permsetlicense_unified

Steps To Reproduce

  1. Run this command:
sf org assign permsetlicense -o "sfi-test-org"\
  -n "vlocity_cmt_EAndUCloudSalesPsl" \
  -n "vlocity_cmt_EAndUCloudServicePsl"

Expected result

Both PSL will be assigned to the user.

Actual result

Error (1): Flag --name can only be specified once

System Information

{
  "architecture": "darwin-x64",
  "cliVersion": "@salesforce/cli/2.29.5",
  "nodeVersion": "node-v20.11.1",
  "osVersion": "Darwin 23.2.0",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.8 (core)",
    "@oclif/plugin-commands 3.1.3 (core)",
    "@oclif/plugin-help 6.0.12 (core)",
    "@oclif/plugin-not-found 3.0.10 (core)",
    "@oclif/plugin-plugins 4.2.2 (core)",
    "@oclif/plugin-search 1.0.14 (core)",
    "@oclif/plugin-update 4.1.11 (core)",
    "@oclif/plugin-version 2.0.12 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.10 (core)",
    "@oclif/plugin-which 3.0.15 (core)",
    "@provartesting/provardx 0.3.2 (user)",
    "@salesforce/cli 2.29.5 (core)",
    "apex 3.0.23 (core)",
    "auth 3.3.11 (core)",
    "data 3.0.20 (core)",
    "deploy-retrieve 3.2.14 (core)",
    "dev 2.1.1 (user)",
    "info 3.0.24 (core)",
    "limits 3.1.8 (core)",
    "marketplace 1.0.22 (core)",
    "omnistudio-migration-tool 1.3.0 (user)",
    "org 3.3.12 (core)",
    "packaging 2.1.7 (core)",
    "schema 3.1.3 (core)",
    "settings 2.0.24 (core)",
    "signups 2.0.15 (user)",
    "sobject 1.1.11 (core)",
    "source 3.1.13 (core)",
    "telemetry 3.1.11 (core)",
    "templates 56.0.14 (core)",
    "trust 3.3.8 (core)",
    "user 3.2.8 (core)",
    "sfdx-hardis 4.10.2 (user)"
  ]
}

Additional information

image
@thvd thvd added the investigating We're actively investigating this issue label Feb 23, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Feb 23, 2024
@thvd
Copy link
Author

thvd commented Feb 23, 2024

When i compare https://github.com/salesforcecli/plugin-user/blob/main/src/commands/org/assign/permset.ts and https://github.com/salesforcecli/plugin-user/blob/main/src/commands/org/assign/permsetlicense.ts i see a few differences which could be helpful for how to solve this.

Good to know: for the permset this feature is working.

@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Feb 23, 2024
Copy link

git2gus bot commented Feb 23, 2024

This issue has been linked to a new work item: W-15109060

@mshanemc
Copy link
Contributor

I'll fix that

@jshackell-sfdc
Copy link
Collaborator

This issue was fixed in version 2.31.10 of Salesforce CLI.

@thvd
Copy link
Author

thvd commented Mar 14, 2024

@mshanemc thanks for the quick resolve on this one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants