How to set refinement on all search results in React?

I am using Algolia React with custom connected elements. I have a use case where I have a series of records, with each record having an assigned userID, such that only that user can view that record.

What is the easiest way to filter on userID?

hi @sam5, you can use secured API keys to restrict access to your records.