How can we enable Asset Sharing as we create a scratch org?

The only way I know to enable it is by switching to classic and navigating to it on the Setup menu. I would like to script this or define it in the project-scratch-def.json so I can spin up a scratch org as a pre-commit hook.

1 Answer 1


you can add it in the project-scratch-def.json. Just add the following there.

"sharingSettings": {
    "enableAssetSharing": true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.