Skip to content

Instantly share code, notes, and snippets.

@mhamzas
Last active April 29, 2022 18:37
Show Gist options
  • Save mhamzas/76c77883ec99a852e1db8b08f64407ad to your computer and use it in GitHub Desktop.
Save mhamzas/76c77883ec99a852e1db8b08f64407ad to your computer and use it in GitHub Desktop.
// example of how to configure SecuritySettings in your scratch org.
{
"orgName": "Acme",
"edition": "Enterprise",
"features": [],
"settings": {
"mobileSettings": {
"enableS1EncryptedStoragePref2": true
},
"securitySettings": {
"sessionSettings":{
"sessionTimeout": "TwelveHours"
}
}
}
}
{
"orgName": "Acme",
"edition": "Enterprise",
"features": ["Communities", "ServiceCloud", "Chatbot"],
"settings": {
"communitiesSettings": {
"enableNetworksEnabled": true
},
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": true
},
"omniChannelSettings": {
"enableOmniChannel": true
},
"caseSettings": {
"systemUserEmail": "support@acme.com"
}
}
}
// Create a Scratch Org for a Specific Release
{
"orgName": "Dreamhouse",
"edition": "Developer",
"release": "Preview",
"settings": {
"mobileSettings": {
"enableS1EncryptedStoragePref2": true
}
}
}
// sfdx force:org:create -f config/project-scratch-def.json -a PreviewOrg -v DevHub release=Preview
sfdx force:user:password:generate --targetusername <username>
{
"orgName": "Demo company",
"edition": "Developer",
"features": ["EnableSetPasswordInApi","PersonAccounts"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
}
}
}
{
"orgName": "FSC Scratch",
"edition": "Partner Developer",
"namespace":"NEDNameSpace",
"features": ["Communities",
"ContactsToMultipleAccounts",
"PersonAccounts",
"IndustriesActionPlan",
"DocumentChecklist",
"FinancialServicesUser:10",
"FinancialServicesCommunityUser:10",
"FlowSites"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"securitySettings": {
"passwordPolicies": {}
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
},
"communitiesSettings": {
"enableNetworksEnabled": true
}
},
"objectSettings": {
"account": {
"defaultRecordType": "PersonAccount"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment