Skip to main content
So this is a security issue but I'm wondering if you might have thoughts on why Salesforce does what it does.  We have two custom objects:  Doctor and MedicalOffice.  The Doctor record has a lookup field that links to the MedicalOffice so we know what doctors belong to what office.

 

The user opens up a doctor record and has it on the screen.  The lookup field is displayed and it shows the name of the medical office.  Now if the user hovers over the field or clicks on the link they get an Insufficient privileges error.

 

This is a security issue and I'm fine with that - no explanation needed.  What I'm wondering though is why if the user does not have rights to the record does Salesforce show the record name in the lookup field.  It seems to me that if the objective is to make the record inaccessible then it should not even appear in the lookup field.  Having said that I guess I don't really know what Salesforce could do instead.  It just seems that if the name of the medical office is visible then the implication is that the user can access the record yet that is blocked when they try to do so.
2 answers
  1. Sep 20, 2018, 5:47 PM
    Is it specific profiles you do not want to see the Medical Office field?

     

    Maybe go to the Doctor Object and remove the Visible option to that lookup for that profile?
0/9000