Password Protect Records in Salesforce

Credits :

Suppose Salesforce org record level access is set to Public Read Only and now business want to restrict few records visible to only those users who have token or key to view that record. As sharing setting is set to Public Read Only, so user can see all the records right?

I have come up with the solution of password protecting account records. I built a visualforce page with standard controller as Account and an apex extension. Its pretty simple to implement but with powerful output. Checkout the video explaining functional and technical flow.

GIT Repo:


Popular Salesforce Videos