function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jonathan Wolff 7Jonathan Wolff 7 

Search Component finds results for system administrators but not for Standart Lightning Users

Hello,

I have build a search component. In system administrators I do get results when I insert a word, but do not get results for Standart Lightning users. Where could this problem come from?

Greetings
Best Answer chosen by Jonathan Wolff 7
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Jonathon,

Please check if the records are accessible for the user which you are trying to search with . And make sure you give access to the apex classes for that user . 

Please find the below release note which says the profile should have access to the profile for the auraenabled methods.

https://help.salesforce.com/s/articleView?id=release-notes.rn_lc_restrict_apex_authenticated_users.htm&type=5&release=228 (https://help.salesforce.com/s/articleView?id=release-notes.rn_lc_restrict_apex_authenticated_users.htm&type=5&release=228)

If this solution helps, Please mark it as best answer.

Thanks,