-
Notifications
You must be signed in to change notification settings - Fork 79
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
sfdx force:user:password:generate - The requested Resource does not exit API 51.0 #798
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. |
What version is your instance? |
@amphro The instance is CS96 |
This issue has been linked to a new work item: W-8768271 |
@AllanOricil are you able to see the password policies in your org, specifically whether This setting can't be re-enabled via ui or config/mdapi if it's disabled because v51 of the mdapi deprecates the setting. https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_securitysettings.htm |
I have an update on this. This is no longer going to work in v51/Spring21
It's now moved to the Features section [only available on scratch orgs] "features": ["EnableSetPasswordInApi", ....], |
@AllanOricil can you try your org again using the updated scratchDef to make sure it's working? |
@mshanemc I was gonna try it, but I can't even update sfdx |
@mshanemc it actually updated, but it threw that error message |
Ok, after updating sfdx to 7.84.2, I first configured SFDX to use apiVersion=51.0, then I tried to create a SO with the following configs: {
"orgName": "Demo company",
"edition": "Developer",
"release": "Preview",
"features": [
"Communities",
"ContactsToMultipleAccounts",
"DebugApex",
"EnableSetPasswordInApi"
],
"settings": {
"languageSettings": {
"enableTranslationWorkbench": true,
"enableEndUserLanguages": true
},
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
},
"communitiesSettings": {
"enableNetworksEnabled": true
},
"orgPreferenceSettings": {
"s1DesktopEnabled": true
}
}
}
But I got this error |
@mshanemc after changing to apiVersion=50.0 the SO was created with no problem and I was, again, able to generate the password The problem now is that I can't even create a SO using API v51.0. Before I was able to do it and the only part that was failing was the password generation. |
This was fixed and shipped. Re-open or open a new issue if you're still seeing it. |
Summary
Can't use
sfdx force:user:password:generate
with API 51.0When changing to API 50.0 it works
Steps To Reproduce:
1 - Set sfdx api to 51.0
2 - try to generate user password for a Scratch Org
3 - Set api to 50.0
4 - run the command again
5 - Check it worked
Expected result
Should create the password
Actual result
It says the resource does not exist
Additional information
OS and version: Windows 10
The text was updated successfully, but these errors were encountered: