force:user:permset:assign fails on 7.84.2
See original GitHub issueSummary
The permission set assignment command fails on the latest version of the CLI.
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
- Follow the “Installing Dreamhouse using a Scratch Org” steps (outlined here)
- After successfully pushing the source code, run the following command:
sfdx force:user:permset:assign -n dreamhouse
Expected result
The permission set is assigned to the default user.
Actual result
The command fails with the error Permission set "d" not found in target org. Do you need to push source?
Additional information
I noticed this in a separate repository, and used Dreamhouse for simplicity/replication’s sake.
SFDX CLI Version: sfdx-cli/7.84.2-a2868a68d5 darwin-x64 node-v12.18.3
SFDX plugin Version: 7.84.2
OS and version: macOS Big Sur (v11.1)
Tracked under @W-8716914@
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:9 (1 by maintainers)
Top Results From Across the Web
SFDX Permission set assign command failing in latest version ...
In earlier versions < 7.84.2 sfdx force:user:permset:assign command was working fine, but in latest version it is throwing error Permission ...
Read more >user Commands | Salesforce CLI Command Reference
List all authenticated users of an org. force:user:password:generate. Generate a password for scratch org users. force:user:permset:assign. Assign a permission ...
Read more >[Solved] cli force:user:permset:assign fails on 7.84.2 - GitAnswer
[Solved] cli force:user:permset:assign fails on 7.84.2. Summary. The permission set assignment command fails on the latest version of the CLI.
Read more >Error: Can't Assign Permission Set to User
Overview: When assigning a permission set to a user in CRM Online, the following error message appears: Can't assign permission set...
Read more >Deploy to a Sandbox - DX@Scale
Did it fail? you will need to delete the jsconfig.json file in your mdapi/lwc/jsconfig. ... sfdx force:user:permset:assign -u <playground-1> -n dreamhouse ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jcory we are trying to identify why the core plugin did not get updated. Until we are able to patch, you can run
sfdx plugins:install user
to fix the issue.Another related issue I have seen with
force:user:permset:assign
is using the--onbehalfof
switch causes errorrunning force:user:permset:assign: No AuthInfo found for name
+ the username specified.Same version. 7.84.2
EX:
I switched back to
7.82.1-0
via NPM (npm install sfdx-cli@7.82.1-0 --global
). until a fix is in for 7.84.x