How to "User-restricted Access to Data"

I have some problems with my data on Algolia.
In Algolia I am using two indexes to:

  • index company to save all information of companies using the application
  • index agency to save all agencies (these agencies belong to the company, for example: 1 company has 2, 3 agencies)

I need to limit the right to view data on Algolia according to each company and each user group
For example:

However, my application does not build the back-end server side so I cannot create the API-key according to the instructions in the article.
Please let me ask if there is any way to solve my problem?
Thank you!