Gravatar for

Question by nick emmett, Apr 10, 2017 10:13 AM

Search results different between users

I seem to have different results compared to some of my users. The main example I have is when searching for a user in the search field, I get a result for their profile, whereas most others seem to not get that result - is there something I'm missing permissions-wise? How do I make sure that my users are getting the same experience.



1 Reply
Gravatar for

Answer by Sébastien Belzile, Apr 10, 2017 11:57 AM

I am not familiar with Salesforce, but I suppose part of your query strips out the current user profile from the results.Can you confirm that I understand correctly:

  • You search for Bob, you get a "user profile" result which is Bob.
  • Bob searches for Bob, he does not get a "user profile" result for Bob.

In simpler words, the results can include every profile but the profile of the person searching.

Gravatar for

Comment by nick emmett, Apr 10, 2017 2:36 PM

Thanks @Sébastien Belzile - I think what you are saying is right, here's what is happening currently:

When I search:
I search for Bob, I get Bob's user profile result.
I search for me, I don't get a result.

When someone else searches:
She searches for Bob, she doesn't get any results for his user profile.
She searches for me, the same.

I hope that helps.

Gravatar for

Comment by Sébastien Belzile, Apr 10, 2017 2:47 PM

Great. As I mentioned above, you have a filter in your query that filters out the user profile of the current user.

If you wish to be able to search for your profile, you need to remove this filter.

It should be injected in the `aq` parameter of your query.

Do you know how to perform this task? I will ask somebody who is familiar with Salesforce to provide you instructions.

Gravatar for

Comment by nick emmett, Apr 10, 2017 2:52 PM

Got it, thanks @Sébastien Belzile - the problem we have though is being able to search for other people's profiles - not our own. I seem to be the only person able to do this, but other users don't get any user profile results coming up at all. hope that makes sense,

Gravatar for

Comment by nick emmett, Apr 10, 2017 9:00 PM

Hi @amoreau - our users can access the profiles no problem, they are just not showing in search results if they search for a user's name. Apart from me - I see the profiles in my results when I do the same.

Ask a question