How to Filter SharePoint Highlighted Content Web Part by Current User
Question details
The user needs to configure a SharePoint Online Highlighted Content web part to dynamically display tasks or documents assigned to the currently logged-in user, as the standard [Me] filter does not work.
- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Configuring a web part to show personalized task assignments for the active user.
- Observed behavior
- Filtering works for hardcoded usernames, but applying a dynamic current-user filter fails due to design limitations in the standard UI.
Ensure you have Edit permissions for the SharePoint page and familiarize yourself with the Keyword Query Language (KQL) if you plan to use custom queries.
Use a Custom KQL Query to Filter by Current User
Since the basic UI filter does not support dynamic current-user filtering, you must use a custom Keyword Query Language (KQL) string.
The Highlighted Content web part relies on SharePoint search rather than standard list views. This means the classic [Me] token will not function. Instead, you need to use search tokens provided by KQL.
Navigate to the page containing your Highlighted Content web part and click 'Edit' in the top right corner.
Select the Highlighted Content web part and click the pencil icon to open the property pane.
Under the 'Filter and sort' section, change the query type or source to 'Custom query'.
In the Query text box, enter a KQL query using the dynamic user token, such as AssignedTo:{User.Name} or Author:{User.Name} depending on your environment's managed properties.
Apply the changes and publish the page to verify if the results filter correctly for the signed-in user.
Explore Custom SPFx Solutions or Developer Forums
If KQL does not meet your specific requirement due to web part design limitations, you may need a custom SharePoint Framework (SPFx) web part.
Need a simpler way to manage team documents? Try WPS Office
While SharePoint offers complex web parts for enterprise sites, sometimes you just need a straightforward, highly compatible office suite to create, co-edit, and manage tasks with your team. WPS Office provides a lightweight, free alternative for all your document needs.
- 1. Download the software: Visit the official WPS website and download the free WPS Office suite.
- 2. Install and launch: Run the installer and follow the on-screen instructions to set up the application on your device.
- 3. Collaborate easily: Sign in to access WPS Cloud, where you can share documents and manage team files seamlessly.

Frequently Asked Questions
Why doesn't the [Me] filter work in the Highlighted Content web part?
The [Me] filter is designed specifically for standard SharePoint List Views. The Highlighted Content web part relies on the SharePoint Search engine, which requires KQL tokens (like {User.Name}) instead of standard list view filters.
Can I filter by current user in other SharePoint web parts?
Yes. If you use the standard 'List' or 'Document Library' web parts, you can create a custom view within the list itself using the [Me] filter. Those specific web parts will respect the view's filtering rules.
What is KQL and how does it help with filtering?
KQL stands for Keyword Query Language. It allows you to build advanced search queries in SharePoint. By using dynamic tokens like {User.Name} in a custom KQL query, you can instruct a search-based web part to dynamically display content related to the currently signed-in user.




