Restrict a tenant token to see a subset of the displayedAttributes
#636
gmourier
started this conversation in
Feedback & Feature Proposal
Replies: 2 comments 2 replies
-
Great suggestion |
Beta Was this translation helpful? Give feedback.
2 replies
-
It'd be awesome to have this in Meilisearch! Here’s my use case: Another scenario: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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