So I made a function that reads an index document to generate the names of the fields from its values.
It all worked fine as long as I was using a Server role, but it broke when using one of my users’ roles.
It all boils down to this:
Get(Index("MyIndex"))
I’ve tried adding the unrestricted permission to the role over the index (just to see what would happen) and it didn’t grant access to the index document.
Is there a way to overcome this limitation?