forcedotcom / forcedotcom/cli

Asset Sharing Model in Scratch Org Definition File not reflecting when creating scratch orgs

Open
#1,245 7 comments 0 reactions 0 assignees View on GitHub
area:signups bug investigating owned by another team
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.