We are using angular to display UI and Salesforce is being used to maintain database. We have a REST API class created which has the url Mapping. This class is used to find the records.
We are using 'Customer Community Login' Custom profile and need to check the data by logging as Community User.
We have a lookup field in a custom object (Customer__c). This object and the lookup field(Book__c) are being queried in angular. The required lookup field needs to have 'Read' access on the Custom profile. However, this lookup field is not running on front-end. We checked all the possible IDs and fields access, permission sets, triggers but none seems to be blocking it from getting it accessible from font-end. The OWD for the related object (Book__c, being used in lookup field) is 'Private' and we cannot change it to Public Read/Write. If we provide 'View All' permission to the related object (being used in Lookup field),the query does return with the successful response on front-end.
What could be the cause for failure of query without the 'View All' permission?