Adding readergroups to api search query
under review
Frans Vermunt
When the question it typed, before we want to create ticket, we like to pass the question to our doc360 by apis. We know based on the logged user, which reader groups he has access to. At the moment we already use jwt to have a single sign on and we are passing the reader groups assigned to the user.
so this query would be the best solution:
{{url}}/v2/ProjectVersions/{{project_id}}/:language?searchQuery=This query should be the search query for document 360&readerGroupIds=["----"]
With this solution, you can filter server side if the document is filtered based on authentication.
The second solution could be adding the reader groups to the searchquery result:
{
"data": {
"hits": [
{
"title": "Title ",
"content": " content",
"isHidden": false,
"tags": [],
"slug": "content",
"version": 4,
"articleId": -----",
"categoryId": "-----",
"readerGroupIds": ["------"],
When we have a list of solutions, we like to open the documentation portal (in a new tab) and just show the documentation item that is selected.
Log In
David Schultz
I need this as well, both for the regular search endpoint and the ask-eddy endpoint. In our Project we have an "Internal" category that only employees can view. We have implemented the regular search in our portal via the REST API, and it was returning results to our external users from the "Internal" category. I had to do some work-arounds in our scripts to ignore results from Internal, and it is working well enough, but it's not ideal.
Now we want to implement askEddy in our portal. I can't have Eddy providing answers to our customers that come from our Internal documentation category. From reading the docs, it appears this works properly when using the Ask Eddy widget, but I much prefer to integrate via API so we can manage the look/feel of the UI and not have floating button on the screen.
Shakeer Hussain S
under review
Shakeer Hussain S
Hi Frans Vermunt - Thank you for bringing this to our attention. We genuinely appreciate your feedback and recognize the importance of your concern. We will review the feasibility and update you as soon as possible.