restrict access to a certain Contract Record Type to only executive profiles/roles. - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Simona MartinSimona Martin 

restrict access to a certain Contract Record Type to only executive profiles/roles.

I want to restrict access to a certain Contract Record Type to only executive profiles/roles.  Sharing settings doesn't work, as Contracts are not a fully independent Object.  Rather, it's connected to Accounts. I don't want to restrict access to any Accounts. I do want to restrict a certain Contract Record type from most users (e.g. HR contracts, investment agreements, etc.), allowing only executive management to access/view confidential Contracts.

The best (and most easily managed) solution I have thought about is to create an entirelycustomistom object for Confidential contracts.  Ugh!

Any other ideas?
Tom HoffmanTom Hoffman
Accounts & Contracts are bound together by sharing settings,but you can remove all fields from their profile (except standard ones like contract number).  If they cant see any actual data, that would solve a most of it right?

The other thing, if you are on lightning, create a custom permission called Executive.  Assign this custom permission to your executive profiles (or via permission set to individual users). 

Filter your Lightning components so they are all hidden when the user does not have that permission and instead only show a rich text error message (which is hidden for those with the permission). 
(Its a take on my Rich Text Validation Rule: https://theaccidentaladmins.com/rich-text-validation-rules)
Simona MartinSimona Martin
Thanks Tom, However, I don't want to hide all contract records... just certain ones created within a certain Record Type called "Restricted Access". That is my problem.