vasilis-p / security

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Examples that show how to enforce security in Apex and LWC

  1. Clone the repo:

    git clone git@github.com:albarivas/security.git
    
  2. 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
    
  3. 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
    
  4. Push the app to your scratch org:

    sfdx force:source:push
    
  5. Assign the Security permission set to the default user:

    sfdx force:user:permset:assign -n Security
    
  6. Import sample data:

    sfdx force:data:tree:import -p ./data/sample-data-plan.json
    
  7. Open the scratch org:

    sfdx force:org:open
    

About


Languages

Language:JavaScript 51.7%Language:HTML 26.9%Language:Apex 21.4%