# Restricting user to confluence document in elastic workplace search

**URL:** <https://discuss.elastic.co/t/restricting-user-to-confluence-document-in-elastic-workplace-search/347462>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [November 18, 2023, 10:41pm UTC](https://discuss.elastic.co/t/restricting-user-to-confluence-document-in-elastic-workplace-search/347462 "2023-11-18T22:41:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smohan5](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@smohan5](https://discuss.elastic.co/u/smohan5)\
**Post date:** [November 18, 2023, 10:41pm UTC](https://discuss.elastic.co/t/restricting-user-to-confluence-document-in-elastic-workplace-search/347462/1 "2023-11-18T22:41:54Z")

</div>

I have integrated confluence connector with Elasticsearch and set up Document-level permissions.

I mapped confluence user ID to a Workplace Search username and did a sync

But my get api external returns empty permission list

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [November 27, 2023, 4:01pm UTC](https://discuss.elastic.co/t/restricting-user-to-confluence-document-in-elastic-workplace-search/347462/2 "2023-11-27T16:01:41Z")

</div>

Hi @smohan5 ,

> I mapped confluence user ID to a Workplace Search username

Something that trips up a lot of folks is that you don't use the Workplace Search username, but the _elasticsearch_ username. This documentation helps you find the right username: [How to find the \_elasticsearch\_username attribute value](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-document-permissions.html#workplace-search-document-permissions-find-elasticsearch-username)

Note that these usernames are not always human-readable, but may be random strings/numbers.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2023, 4:01pm UTC](https://discuss.elastic.co/t/restricting-user-to-confluence-document-in-elastic-workplace-search/347462/3 "2023-12-25T16:01:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
