Restrict a tenant token to see a subset of the displayedAttributes
#636
Replies: 3 comments 2 replies
-
Great suggestion |
Beta Was this translation helpful? Give feedback.
-
It'd be awesome to have this in Meilisearch! Here’s my use case: Another scenario: |
Beta Was this translation helpful? Give feedback.
-
Bumping this as we have a strong need for it too |
Beta Was this translation helpful? Give feedback.
-
Use case
In the situation where I create tenant tokens using Meilisearch in a multi-tenancy use case, I want certain types of users not to be able to see specific fields within the retrieved documents.
Workarounds
Ideas
Goal: I want to hide the
partner_price
field for non-partner end-users interacting with the search.When creating a tenant token, I could override the
displayedAttributes
index setting; the drawback is that I must list every displayable attributes while omitting the one I want to hide.Another solution could be having a proper tenant token property to hide some fields from the
displayedAttributes
index settingsBeta Was this translation helpful? Give feedback.
All reactions