You can limit who can see record names in lookup and system fields like Created By and Last Modified By to protect your Salesforce org’s data better. Users must have Read access to these records or the View All Lookup Record Names permission to view this data if you enable the Require permission to view record Names in the lookup fields setting.
How to Enable this: Under Other Settings On Sharing Settings via Setup.
Example:
On Lightning, When the Require permission to view record names in the lookup fields setting
is activated, users without Read access or the View All Lookup Record Names permission
see the lookup field labels but not the contents in the fields in Lightning Experience.

On Classic, Users who do not have Read access or the View All Lookup Record Names permission in Salesforce Classic see an underscore in system user lookup fields. The record ID is also visible in custom user and non-user lookup fields.

We are Inno Valley Works, We are a passionate team of developers, best thinkers and consultants who can solve anything and everything.
With our highly engaging team, you can easily bring the vision to all your business ventures come true.
We have team, put your problem, get your solution
🎥 Check Out Our YouTube Channel
Explore helpful tutorials, product updates, and feature walkthroughs from the team at Innovalley Works.
👉 Visit Our Channel