I went through the sites class and I did not find any standard method to Lockout User. Does any one know have come across this please share your thoughts.

2 Answers 2


Go through the following link(May help). http://simplysfdc.blogspot.com/2013/05/disable-user-login-to-salesforce.html


This can be managed using the Profiles. In Profiles we can define the policies of the password. Only thing I need to do is when the user is logging in I need to query from my public site and show him the message.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .