# Invalid field name: \_allow\_permissions,\_deny\_permissions

**URL:** <https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [May 28, 2021, 5:53am UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287 "2021-05-28T05:53:19Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![ross.bell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ross.bell/32/77559_2.png) [@ross.bell](https://discuss.elastic.co/u/ross.bell)\
**Post date:** [June 23, 2021, 3:13pm UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287/41 "2021-06-23T15:13:24Z")

</div>

> If you specify an ID when you register a document, the document ID will be used; if you do not specify an ID, the ID issued by the system will be used.

Yes, and the id will be returned in the response in both cases.

> For a basic license, there is no way to know the document ID via API.  
> If you want to know the document ID via API, you need a platinum license.

It is correct that you can't query for document ids over the API without a platinum license. The workaround is persisting the document ids in use at index time.

> If you have a basic license, you need to keep a separate record of the document ID at the time of registration.

Correct.

> If you have a platinum license, you can refer to the document ID at any time using the search API.

Yes in that you will be able to query for the document ids over the API.

> Note that if the above understanding is correct...

Correct, it would be up to the administrator to ensure relevant document ids are tracked at index time as needed for later use.

> I would like to submit a request to include the document ID in the return value of the `get-content-source-api` shown above, is that possible?  
> If it is possible, please let me know the proper way to submit the request.

Unfortunately it wouldn't be feasible to return all document ids that exist under a content source, which is what that endpoint is used for. I'll pass along this friction point to the team in case they decide to make any changes.

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [June 25, 2021, 2:01am UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287/42 "2021-06-25T02:01:53Z")

</div>

Thank you for your detailed answer.

> [@ross.bell](#):
>
> Unfortunately it wouldn't be feasible to return all document ids that exist under a content source, which is what that endpoint is used for.

I appreciate this very much.  
I would appreciate if you could discuss this a bit.

> [@ross.bell](#):
>
> I'll pass along this friction point to the team in case they decide to make any changes.

Yeah. Are you suggesting that the number of documents could be huge?  
Yes, this is a good point.

However, if you use `get-content-source-api`, you can limit it to a specific content source, and if you limit it to document ids, I think it's not such a reckless attempt.

---

<div class="post-metadata">

**Author:** ![ross.bell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ross.bell/32/77559_2.png) [@ross.bell](https://discuss.elastic.co/u/ross.bell)\
**Post date:** [June 28, 2021, 1:28pm UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287/43 "2021-06-28T13:28:07Z")

</div>

Those endpoints generally conform to REST structure, so as documents belong to the content source, they wouldn't be appropriate to include in the content source body. It's possible Workplace Search will add a documents endpoint someday, independent from the Search API.

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [June 29, 2021, 12:50am UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287/44 "2021-06-29T00:50:18Z")

</div>

Ah. I see.  
So it's a structural problem.  
My apologies.

The attempt may not be easy, but I hope this feature will be added soon, because I want to spread WorkplaceSearch to my colleagues at work.

---

<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:** [October 31, 2022, 2:48am UTC](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287/45 "2022-10-31T02:48:04Z")

</div>

Closed on October 31, 2022, 2:48am UTC

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

[Previous page](https://discuss.elastic.co/t/invalid-field-name-allow-permissions-deny-permissions/274287.md?page=2)
