# Omit user profile pages in link picker

**URL:** <https://forum.xwiki.org/t/omit-user-profile-pages-in-link-picker/14047>\
**Category:** Help / Discuss\
**Tags:** page-editing\
**Created:** [February 10, 2024, 2:21am UTC](https://forum.xwiki.org/t/omit-user-profile-pages-in-link-picker/14047 "2024-02-10T02:21:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgilmore](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@jgilmore](https://forum.xwiki.org/u/jgilmore)\
**Post date:** [February 10, 2024, 2:21am UTC](https://forum.xwiki.org/t/omit-user-profile-pages-in-link-picker/14047/1 "2024-02-10T02:21:37Z")

</div>

Hi there!

Is there an option to exclude user profile pages from appearing in the ‘suggest’ drop-down when adding a page via the Insert link macro? I can’t think of many cases where we would want to link to a profile when there is the ‘user mention’ option.

Reading the documentation for the [Suggest Widget](https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/FrontendResources/AutoSuggestWidget/), it seems that [UserPicker](https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/FrontendResources/AutoSuggestWidget/#HSuggestUsers) and [PagePicker](https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/FrontendResources/AutoSuggestWidget/#HSuggestPages) distinguish between the two but I wasn’t sure if a similar approach could be taken and/or where to specify this.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [February 12, 2024, 9:37am UTC](https://forum.xwiki.org/t/omit-user-profile-pages-in-link-picker/14047/2 "2024-02-12T09:37:59Z")

</div>

There’s no configuration option for this currently. You’d have to overwrite [xwiki-platform/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-resource/entityResourceSuggester.js at master · xwiki/xwiki-platform · GitHub](https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-resource/entityResourceSuggester.js#L86) to filter out documents that have an object of type `XWiki.XWikiUsers`. See also [https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application](https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application) .

Hope this helps,  
Marius
