Ask Search:
Bart RodenbaughBart Rodenbaugh 

Lock an Account record (and child objects) to all users, including Admins

I need to place a Legal Hold on one of my Accounts and need to lock if from editing for all users, including the Admins.  
I got it to work for all users, except Admins, by creating a checkbox field and then creating a sharing rule to share all records where the check box is not checked.  We have Private OWD setting on Accounts.
I also created a highest level Role, added one user and assigned the account to that user.
I also created a VR rule using that checkbox field that says if that checkbox is True, then it can't be edited.
All admins still can edit the record and I am stumped on what else to try to prevent the admins from editing that account.
Any ideas?
Best Answer chosen by Bart Rodenbaugh
Evan PonterEvan Ponter
What is the logic in your validation rule? If you make it 
PRIORVALUE(checkbox_Field__c, TRUE)
Then no edits should be allowed once that field is set to true. You would have to deactivate the validation rule to unlock this record.

All Answers

Evan PonterEvan Ponter
What is the logic in your validation rule? If you make it 
PRIORVALUE(checkbox_Field__c, TRUE)
Then no edits should be allowed once that field is set to true. You would have to deactivate the validation rule to unlock this record.
This was selected as the best answer
Coby PressCoby Press
I think you need to reasses why admins can't edit it. The role of an admin should be to oversea the whole org, and if they can't have access to it, then things could go wrong- and there be nobody to fix it.
if you are adamant on admins not being able to see it- clone their profile and remove the view all/modify all permissions!
Bart RodenbaughBart Rodenbaugh
Thank you Gentlemen.   I'm all set.