# Users unable to search

**URL:** <https://forum.xwiki.org/t/users-unable-to-search/924>\
**Category:** Help / Discuss\
**Tags:** search, accessrights, permisssion\
**Created:** [November 28, 2017, 2:19pm UTC](https://forum.xwiki.org/t/users-unable-to-search/924 "2017-11-28T14:19:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syn](https://forum.xwiki.org/user_avatar/forum.xwiki.org/syn/32/179_2.png) [@Syn](https://forum.xwiki.org/u/Syn)\
**Post date:** [November 28, 2017, 2:19pm UTC](https://forum.xwiki.org/t/users-unable-to-search/924/1 "2017-11-28T14:19:03Z")

</div>

Hi all, so my users recently ran into an error when trying to use the search option, it states that they dont have permission Yet i dont think i have ever changed the search permissions on the site. Any idea what i might be doing wrong, here is the error it gives me:

```auto
Failed to execute the [include] macro. Cause: [Current user [xwiki:XWiki.gn1185] doesn't have view rights on document [xwiki:XWiki.SearchCode]]. Click on this message for details.

```

If more details are required, i will be more than happy to provide them.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [November 28, 2017, 2:28pm UTC](https://forum.xwiki.org/t/users-unable-to-search/924/2 "2017-11-28T14:28:52Z")

</div>

I would check the permissions you have on your wiki to make sure all your users have view permissions for that page. Since the error says that, it must be right 😉

---

<div class="post-metadata">

**Author:** ![Syn](https://forum.xwiki.org/user_avatar/forum.xwiki.org/syn/32/179_2.png) [@Syn](https://forum.xwiki.org/u/Syn)\
**Post date:** [November 29, 2017, 12:37pm UTC](https://forum.xwiki.org/t/users-unable-to-search/924/3 "2017-11-29T12:37:43Z")

</div>

Right!!! 😅 Turns out i had done that before but the user was in a different user group. Thanks as always 🙂
