question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

force:user:permset:assign fails on 7.84.2

See original GitHub issue

Summary

The permission set assignment command fails on the latest version of the CLI.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

  1. Follow the “Installing Dreamhouse using a Scratch Org” steps (outlined here)
  2. 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

image

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:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
amphrocommented, Jan 14, 2021

@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.

2reactions
mhailcommented, Jan 15, 2021

Another related issue I have seen with force:user:permset:assign is using the --onbehalfof switch causes error running force:user:permset:assign: No AuthInfo found for name + the username specified.

Same version. 7.84.2

EX:

sfdx force:user:permset:assign -n B2B_Commerce_User --onbehalfof sbuys-f0f94f12089c@example.com
ERROR running force:user:permset:assign:  No AuthInfo found for name sbuys-f0f94f12089c@example.com

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found