Hi everyone,
I need to implement a search bar for a specific entityType, but with customized search criteria based on the user’s profile. The official documentation for the <searchBar> tag doesn’t seem to support this functionality out of the box.
I noticed there’s a scaffolding template called SearchBarPageAccessControl, which appears to be profile-related, but I’m unclear on:
- What its exact purpose is.
- Whether it can be used to achieve our goal (i.e., restricting/dynamically adjusting search filters for certain users to simplify their experience).
Our use case: We want to reduce the number of search criteria displayed in the search bar for specific user roles to make it more intuitive.
Has anyone faced a similar requirement or found a workaround? If so, I’d greatly appreciate insights on:
- How you implemented profile-based search bar customization.
- Whether
SearchBarPageAccessControl(or another approach) was used. - Any potential limitations or gotchas.
Thanks in advance for your help.
Thierry