-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to return list of users after they are created due to ProfileId error #1310
Comments
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. |
I tried this but couldn't get what you got. Can you take a look at what I did and see if there's anything different that jumps out to you?
and the same with a custom username
If it seems right, maybe I'll have to fire up the old windows box and see if it's some OS problem. |
Your steps look the same as the ones I made. Unfortunately I don't have a Mac handy to try it here myself. While you boot up your windows box, I will ask my team to see if anyone has a Mac to try it here. |
This worked fine on windows, too (powershellm win10).
|
I did these steps in Powershell on my machine and it works perfectly. So it looks to be related to running it from a command line. I created several orgs and added users to them all and when I ran force:user:list to list the users, there were no errors. One thing to note, that when I call the force:user:list in powershell on an org/user that was created in my command window, I still get the ProfileId error. So, once it is messed up in dos, it stays messed up. |
Hi, I am getting the same error on a Mac. MacOS Ventura 13.1. I tested both with zsh and bash shell, but no difference, the outcome is:
System information: { |
I could never replicate this, but I'm pretty sure it was fixed by salesforcecli/plugin-user#617 If you've got a replication on a current CLI/plugin, please open a new issue. |
Summary
We can create a scratch org successfully, and then according to the console output we can create a user successfully. But once I create the user and then try to get the list of users, I get thrown the error
"ERROR running force:user:list: Cannot read properties of undefined (reading 'ProfileId')"
Steps To Reproduce:
Expected result
Get the list of users in the org
Actual result
Get the error message "ERROR running force:user:list: Cannot read properties of undefined (reading 'ProfileId')"
System Information
{
"cliVersion": "sfdx-cli/7.129.0",
"architecture": "win32-x64",
"nodeVersion": "node-v16.13.0",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.2.3 (core)",
"@oclif/plugin-not-found 1.2.4 (core)",
"@oclif/plugin-plugins 1.10.1 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.0 (core)",
"@oclif/plugin-which 1.0.3 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 1.1.22 (core)",
"apex 0.3.0 (core)",
"auth 1.7.6 (core)",
"config 1.2.48 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.5 (core)",
"generator 1.2.1 (core)",
"limits 1.2.3 (core)",
"org 1.9.2 (core)",
"salesforce-alm 53.4.5 (core)",
"schema 1.0.10 (core)",
"sfdx-cli 7.129.0 (core)",
"source 1.5.3 (core)",
"telemetry 1.3.0 (core)",
"templates 52.6.0 (core)",
"trust 1.0.10 (core)",
"user 1.5.3 (core)"
],
"osVersion": "Windows_NT 6.3.9600"
}
Additional information
The text was updated successfully, but these errors were encountered: