+ Start a Discussion
Sami ShakithSami Shakith 

How to restrict user from deployment using sfdx command/deploy option in VS code

Hi All,

I want to restrict user from deploying components. If my user only use SF means i can restrict them from profiles just by uncheck the inbound and outbound setup options but in my case users are using VS code for the implementation and they directly deloy from it. Can we restrict this?

Thanks in advance.

AbhishekAbhishek (Salesforce Developers) 
Hi Sami,

There is only one way to do this.

You have to remove the necessary permissions for that user profile to restrict him to deploy.

That is the only way.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Cheldon SouzaCheldon Souza
Hi Sami,
Access to deploy can be blocked by removing permission "Modify Metadata Through Metadata API Functions" on Profile
João Gabriel MonteiroJoão Gabriel Monteiro
The permission name is Modify Metadata Through Metadata API Functions.