function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jon Simmonds 11Jon Simmonds 11 

Permission required to deploy LWC's?

Is there a specific permission required to deploy Lightning Web Components to a sandbox using sfdx deploy from VS Code?
We have created a custom profile that a developer is using, they have connected to a sandbox and are trying to deploy Lightning Web Components to that sandbox using the sfdx force:source:deploy command.
We get the following error:
Error when deploying a LWC
VinayVinay (Salesforce Developers) 
Hi Jon, 

If you are using the 'System Admin' profile to deploy you should be able to deploy.

https://trailhead.salesforce.com/content/learn/modules/lightning-web-components-basics/push-lightning-web-component-files

Chcek below references.

https://help.salesforce.com/articleView?id=000328226&type=1&mode=1
https://www.infallibletechie.com/2012/12/insufficient-access-rights-on-cross.html

Thanks,
Nitish Yadav 45Nitish Yadav 45
Give "Customize Application" permission on your profile and then deploy. I think that will resolve the issue