security
security copied to clipboard
Code Examples that show how to enforce security in Apex and LWC
-
Clone the repo:
git clone [email protected]:albarivas/security.git -
If you haven't already done so, authorize with your hub org and provide it with an alias (myhuborg in the command below):
sfdx force:auth:web:login -d -a myhuborg -
Create a scratch org and provide it with an alias (security in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a security -
Push the app to your scratch org:
sfdx force:source:push -
Assign the Security permission set to the default user:
sfdx force:user:permset:assign -n Security -
Import sample data:
sfdx force:data:tree:import -p ./data/sample-data-plan.json -
Open the scratch org:
sfdx force:org:open