Asset Sharing Model in Scratch Org Definition File not reflecting when creating scratch orgs
- Dominant language
- No language data
- Stars
- 571
- Forks
- 80
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 3
Description
### Summary
Hello, we are trying to set the Asset object to private and enable asset sharing as we have classes writing to the AssetShare object. When we try to generate a new scratch org, the assetsharing setting is enabled but the OWD is set to controlled by parent. We see that when adding a default record type to the definition file it's getting created, but the sharing model is not reflecting as private. This is causing issues when attempting to generate a package version with reference to the AssetShare object.
### Steps To Reproduce:
Please see below for our definition file, not certain if we are doing something wrong here or if this is a bug which we need to raise a case for:
{
"orgName": "ABC Company",
"description": "Baseline definition of the Health Cloud org",
"country": "US",
"edition": "Enterprise",
"hasSampleData": false,
"language": "en_US",
"features": [
"HealthCloudUser",
"Communities",
"ContactsToMultipleAccounts",
"PersonAccounts",
"RecordTypes"
],
"settings": {
"chatterSettings": {
"enableChatter": true
},
"knowledgeSettings": {
"enableKnowledge": true,
"enableLightningKnowledge": true
},
"communitiesSettings": {
"enableNetworksEnabled": true
},
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"sharingSettings": {
"enableAssetSharing": true
}
},
"objectSettings": {
"asset": {
"sharingModel": "private",
"defaultRecordType": "Test"
}
}
}
Contributor guide
Assessment
This issue has not been assessed yet.